Class UserDisplayNameComparator
java.lang.Object
de.uplanet.lucy.server.auxiliaries.comparator.UserDisplayNameComparator
- All Implemented Interfaces:
Comparator<IUser>
Compare
IUser
objects by their
display name. null
values have high precedence.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
setAscending
(boolean p_bAscending) Set this comparator to ascending or descending sort order.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
UserDisplayNameComparator
public UserDisplayNameComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<IUser>
-
setAscending
public void setAscending(boolean p_bAscending) Set this comparator to ascending or descending sort order.- Parameters:
p_bAscending
-true
if ascending sort order should be used, orfalse
otherwise.
-