public enum NaturalOrderStringComparator extends Enum<NaturalOrderStringComparator> implements Comparator<String>
| Enum Constant and Description |
|---|
CASE_INSENSITIVE_ORDER |
CASE_SENSITIVE_ORDER |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String str1,
String str2) |
static NaturalOrderStringComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NaturalOrderStringComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final NaturalOrderStringComparator CASE_SENSITIVE_ORDER
public static final NaturalOrderStringComparator CASE_INSENSITIVE_ORDER
public static NaturalOrderStringComparator[] values()
for (NaturalOrderStringComparator c : NaturalOrderStringComparator.values()) System.out.println(c);
public static NaturalOrderStringComparator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int compare(String str1, String str2)
compare in interface Comparator<String>Copyright © 2002-2021 Atlassian. All Rights Reserved.