public static enum Memory.Unit extends Enum<Memory.Unit>
| Modifier and Type | Method and Description |
|---|---|
static Memory.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Memory.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Memory.Unit Bytes
public static final Memory.Unit KB
public static final Memory.Unit MB
public static final Memory.Unit GB
public static final Memory.Unit TB
public static Memory.Unit[] values()
for (Memory.Unit c : Memory.Unit.values()) System.out.println(c);
public static Memory.Unit 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 © 2016 Atlassian. All rights reserved.