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