Comparator<DataObject>
public abstract static class DataFolder.SortMode extends Object implements Comparator<DataObject>
Modifier and Type | Field | 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 |
NONE |
Objects are unsorted.
|
static DataFolder.SortMode |
SIZE |
Folders go first (sorted by name) followed by files sorted by decreasing size.
|
Constructor | Description |
---|---|
SortMode() |
compare, equals, reversed, 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
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.