public enum MemoryType extends java.lang.Enum<MemoryType>
| Enum Constant and Description |
|---|
MEMORY_FREE |
MEMORY_TOTAL |
MEMORY_USED |
SWAP_BUFFERS |
SWAP_FREE |
SWAP_TOTAL |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInternalName() |
java.lang.String |
getLabel() |
java.lang.String |
toString() |
static MemoryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryType MEMORY_TOTAL
public static final MemoryType MEMORY_FREE
public static final MemoryType MEMORY_USED
public static final MemoryType SWAP_TOTAL
public static final MemoryType SWAP_FREE
public static final MemoryType SWAP_BUFFERS
public static MemoryType[] values()
for (MemoryType c : MemoryType.values()) System.out.println(c);
public static MemoryType 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 java.lang.String getInternalName()
public java.lang.String getLabel()
public java.lang.String toString()
toString in class java.lang.Enum<MemoryType>