Enum Constant and Description |
---|
FREE |
FREE_FORMATTED |
FREE_IN_MB |
MAX |
MAX_FORMATTED |
MAX_IN_MB |
TOTAL |
TOTAL_FORMATTED |
TOTAL_IN_MB |
USED |
USED_FORMATTED |
USED_IN_MB |
Modifier and Type | Method and Description |
---|---|
static Memory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Memory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Memory USED
public static final Memory USED_IN_MB
public static final Memory USED_FORMATTED
public static final Memory FREE
public static final Memory FREE_IN_MB
public static final Memory FREE_FORMATTED
public static final Memory TOTAL
public static final Memory TOTAL_IN_MB
public static final Memory TOTAL_FORMATTED
public static final Memory MAX
public static final Memory MAX_IN_MB
public static final Memory MAX_FORMATTED
public static Memory[] values()
for (Memory c : Memory.values()) System.out.println(c);
public static Memory 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 null