protected class PeopleSearchProvider.PrincipalSortComparator extends Object implements Comparator
Constructor and Description |
---|
PeopleSearchProvider.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
equals
public PeopleSearchProvider.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)