public static enum Memory.UnitComparator extends Enum<Memory.UnitComparator> implements Comparator<Memory.Unit>
units.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Memory.Unit o1,
Memory.Unit o2) |
static Memory.UnitComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Memory.UnitComparator[] |
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 Memory.UnitComparator INSTANCE
public static Memory.UnitComparator[] values()
for (Memory.UnitComparator c : Memory.UnitComparator.values()) System.out.println(c);
public static Memory.UnitComparator 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(Memory.Unit o1, Memory.Unit o2)
compare in interface Comparator<Memory.Unit>Copyright © 2016 Atlassian. All rights reserved.