public enum MemoryType extends Enum<MemoryType>
| Enum Constant and Description |
|---|
BUFFERS |
MEMORY_FREE |
MEMORY_TOTAL |
MEMORY_USED |
SWAP_FREE |
SWAP_TOTAL |
| Modifier and Type | Method and Description |
|---|---|
static MemoryType |
valueOf(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 BUFFERS
public static MemoryType[] values()
for (MemoryType c : MemoryType.values()) System.out.println(c);
public static MemoryType 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 nullCopyright © 2013. All Rights Reserved.