Class UserLastNameFirstNameComparator
java.lang.Object
de.uplanet.lucy.server.auxiliaries.comparator.UserLastNameFirstNameComparator
- All Implemented Interfaces:
Comparator<IUser>
Compare
IUser
objects by last name
and then by surname. 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
-
UserLastNameFirstNameComparator
public UserLastNameFirstNameComparator()
-
-
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.
-