public class CredentialsNameComparator extends Object implements Comparator<Credentials>, Serializable
| Constructor and Description |
|---|
CredentialsNameComparator()
Creates a new instance that case insensitively sorts names using the the web request locale (if invoked from a
web request
handling thread) or the default locale (if invoked outside of a web request thread.
|
CredentialsNameComparator(Locale locale)
Creates a new instance that case insensitively sorts names using the specified locale.
|
CredentialsNameComparator(Locale locale,
boolean ignoreCase)
Creates a new instance that sorts names using the specified locale.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Credentials c1,
Credentials c2) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic CredentialsNameComparator()
public CredentialsNameComparator(@CheckForNull
Locale locale)
locale - the locale to use or null to use the web request locale (if invoked from a web request
handling thread) or the default locale (if invoked outside of a web request thread.public CredentialsNameComparator(@CheckForNull
Locale locale,
boolean ignoreCase)
locale - the locale to use or null to use the web request locale (if invoked from a web request
handling thread) or the default locale (if invoked outside of a web request thread.ignoreCase - if true then the names will be compared ignoring case.public int compare(Credentials c1, Credentials c2)
compare in interface Comparator<Credentials>public boolean equals(Object o)
equals in interface Comparator<Credentials>equals in class ObjectCopyright © 2016–2017. All rights reserved.