Package org.infinispan.objectfilter.impl
Class FilterResultImpl
- java.lang.Object
-
- org.infinispan.objectfilter.impl.FilterResultImpl
-
- All Implemented Interfaces:
ObjectFilter.FilterResult
public final class FilterResultImpl extends Object implements ObjectFilter.FilterResult
- Since:
- 7.0
- Author:
- anistor@redhat.com
-
-
Constructor Summary
Constructors Constructor Description FilterResultImpl(Object instance, Object[] projection, Comparable[] sortProjection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInstance()
Returns the matched object.Object[]
getProjection()
Returns the projection, if a projection was requested ornull
otherwise.Comparable[]
getSortProjection()
Returns the projection of fields used for sorting, if sorting was requested ornull
otherwise.String
toString()
-
-
-
Constructor Detail
-
FilterResultImpl
public FilterResultImpl(Object instance, Object[] projection, Comparable[] sortProjection)
-
-
Method Detail
-
getInstance
public Object getInstance()
Description copied from interface:ObjectFilter.FilterResult
Returns the matched object. This is non-null unless projections are present.- Specified by:
getInstance
in interfaceObjectFilter.FilterResult
-
getProjection
public Object[] getProjection()
Description copied from interface:ObjectFilter.FilterResult
Returns the projection, if a projection was requested ornull
otherwise.- Specified by:
getProjection
in interfaceObjectFilter.FilterResult
-
getSortProjection
public Comparable[] getSortProjection()
Description copied from interface:ObjectFilter.FilterResult
Returns the projection of fields used for sorting, if sorting was requested ornull
otherwise.- Specified by:
getSortProjection
in interfaceObjectFilter.FilterResult
-
-