protected class PeopleSearchProvider.RoleMatchSortComparator extends Object implements Comparator<Object>
Constructor and Description |
---|
RoleMatchSortComparator(String sortProperty,
boolean ascendingSort,
String match)
Construct a class to contain the sort property, sort direction and matching
string for compare to.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2)
Compares its two arguments for order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public RoleMatchSortComparator(String sortProperty, boolean ascendingSort, String match)
sortProperty
- The value expression to sort by.ascendingSort
- The direction to sort. True to sort ascending. False to sort
descending.match
- The string to compare for matching.public int compare(Object o1, Object o2)
compare
in interface Comparator<Object>
Comparator.compare(Object, Object)