public static enum Memory.MemSize extends java.lang.Enum<Memory.MemSize>
Modifier and Type | Method and Description |
---|---|
Memory.MemSize |
enlarge() |
Memory.MemSize |
ensmall() |
static Memory.MemSize |
getBestMemSize(java.lang.Long memory) |
static double |
getBestMemSizeValue(java.lang.Long memory,
Memory.MemSize bestMemSize) |
static Memory.MemSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Memory.MemSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Memory.MemSize none
public static final Memory.MemSize kilo
public static final Memory.MemSize mega
public static final Memory.MemSize giga
public static Memory.MemSize[] values()
for (Memory.MemSize c : Memory.MemSize.values()) System.out.println(c);
public static Memory.MemSize 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 Memory.MemSize enlarge()
public Memory.MemSize ensmall()
public static Memory.MemSize getBestMemSize(java.lang.Long memory)
public static double getBestMemSizeValue(java.lang.Long memory, Memory.MemSize bestMemSize)