public enum NamedObjectSort extends java.lang.Enum<NamedObjectSort> implements java.util.Comparator<NamedObject>
| Enum Constant and Description |
|---|
alphabetical
Alphabetical sort.
|
natural
Natural sort.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
compare(NamedObject namedObject1,
NamedObject namedObject2) |
static NamedObjectSort |
getNamedObjectSort(boolean alphabeticalSort) |
static NamedObjectSort |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NamedObjectSort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NamedObjectSort alphabetical
public static final NamedObjectSort natural
public static NamedObjectSort[] values()
for (NamedObjectSort c : NamedObjectSort.values()) System.out.println(c);
public static NamedObjectSort valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NamedObjectSort getNamedObjectSort(boolean alphabeticalSort)
public abstract int compare(NamedObject namedObject1, NamedObject namedObject2)
compare in interface java.util.Comparator<NamedObject>Copyright © 2000-2018 Sualeh Fatehi. All rights reserved.