T - target object type for extractionpublic interface SortingPropertyExtractor<T> extends PropertyExtractor<T>
PropertyExtractor that also sorts properties, given two instances of the target Java type.| Modifier and Type | Method and Description |
|---|---|
boolean |
canSort(PropertyDef<?> propertyDef)
Determine if the given property can be sorted by this instance.
|
int |
sort(PropertyDef<?> propertyDef,
T obj1,
T obj2)
Sort two values based on the given property.
|
getPropertyValueboolean canSort(PropertyDef<?> propertyDef)
Comparable.propertyDef - definition of propertypropertyDef can be sorted by this instanceNullPointerException - if propertyDef is nullint sort(PropertyDef<?> propertyDef, T obj1, T obj2)
obj1 - first Java objectobj2 - second Java objectpropertyDef - definition of property to sort onobj1's property value to obj2's property valueNullPointerException - if any parameter is nullUnsupportedOperationException - if the property defined by propertyDef cannot be sorted by this instanceCopyright © 2017. All rights reserved.