com.atlassian.util.concurrent
Enum Memory.MemoryComparator
java.lang.Object
java.lang.Enum<Memory.MemoryComparator>
com.atlassian.util.concurrent.Memory.MemoryComparator
- All Implemented Interfaces:
- Serializable, Comparable<Memory.MemoryComparator>, Comparator<Memory>
- Enclosing class:
- Memory
public static enum Memory.MemoryComparator
- extends Enum<Memory.MemoryComparator>
- implements Comparator<Memory>
Comparator for units
.
INSTANCE
public static final Memory.MemoryComparator INSTANCE
values
public static Memory.MemoryComparator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Memory.MemoryComparator c : Memory.MemoryComparator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Memory.MemoryComparator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
compare
public int compare(Memory o1,
Memory o2)
- Specified by:
compare
in interface Comparator<Memory>
Copyright © 2014 Atlassian. All Rights Reserved.