protected class DirectorySearchProvider.PrincipalSortComparator extends Object implements Comparator
Constructor and Description |
---|
PrincipalSortComparator(String sortProperty,
boolean ascendingSort)
Construct a class to contain the sort property and sort direction.
|
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 PrincipalSortComparator(String sortProperty, boolean ascendingSort)
sortProperty
- The value expression to sort by.ascendingSort
- The direction to sort. True to sort ascending. False to sort descending.public int compare(Object o1, Object o2)
compare
in interface Comparator
Comparator.compare(Object, Object)