public abstract static class DataFolder.SortMode extends Object implements Comparator<DataObject>
Modifier and Type | Field and Description |
---|---|
static DataFolder.SortMode |
CLASS
Objects are sorted by their types and then by names.
|
static DataFolder.SortMode |
EXTENSIONS
Folders go first (sorted by name) followed by files sorted by
extension and then by name.
|
static DataFolder.SortMode |
FOLDER_NAMES
Folders go first (sorted by name) followed by non-folder
objects sorted by name.
|
static DataFolder.SortMode |
LAST_MODIFIED
Folders go first (sorted by name) followed by files sorted by decreasing
last modification time.
|
static DataFolder.SortMode |
NAMES
Objects are sorted by their names.
|
static DataFolder.SortMode |
NATURAL
Folder go first (sorted naturally by name) followed by files sorted
by natural name and extension.
|
static DataFolder.SortMode |
NONE
Objects are unsorted.
|
static DataFolder.SortMode |
SIZE
Folders go first (sorted by name) followed by files sorted by decreasing size.
|
Constructor and Description |
---|
SortMode() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final DataFolder.SortMode NONE
public static final DataFolder.SortMode NAMES
public static final DataFolder.SortMode CLASS
public static final DataFolder.SortMode FOLDER_NAMES
public static final DataFolder.SortMode LAST_MODIFIED
public static final DataFolder.SortMode SIZE
public static final DataFolder.SortMode EXTENSIONS
public static final DataFolder.SortMode NATURAL