public enum Sort extends Enum<Sort> implements Comparator<String>
| Enum Constant and Description |
|---|
ALPHABETIC |
ALPHABETIC_LEAVES_FIRST |
ALPHABETIC_LEAVES_LAST |
NONE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String path1,
String path2) |
static Sort |
parse(String humanReadable) |
String |
toString() |
static Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sort[] |
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, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final Sort NONE
public static final Sort ALPHABETIC_LEAVES_LAST
public static final Sort ALPHABETIC_LEAVES_FIRST
public static final Sort ALPHABETIC
public static Sort[] values()
for (Sort c : Sort.values()) System.out.println(c);
public static Sort 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 path1, String path2)
compare in interface Comparator<String>Copyright © 2023 LSST. All rights reserved.