public class UserNameComparator extends Object implements Comparator<ApplicationUser>
Principal.getName()
, not taking into account the users
full name. If you want to sort first on the full name then use a
UserCachingComparator
.Constructor and Description |
---|
UserNameComparator(Locale locale) |
Modifier and Type | Method and Description |
---|---|
int |
compare(ApplicationUser user1,
ApplicationUser user2) |
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 UserNameComparator(Locale locale)
public int compare(ApplicationUser user1, ApplicationUser user2)
compare
in interface Comparator<ApplicationUser>
Copyright © 2002-2024 Atlassian. All Rights Reserved.