public static enum MemoryOption.Prefix extends Enum<MemoryOption.Prefix>
Modifier and Type | Field and Description |
---|---|
private String |
javaChar |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
getJavaChar() |
String |
getJavaFormat(String value) |
String |
getName() |
String |
toString() |
static MemoryOption.Prefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemoryOption.Prefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryOption.Prefix MEGA
public static final MemoryOption.Prefix GIGA
public static final MemoryOption.Prefix TERA
public static final MemoryOption.Prefix PERCENT
public static MemoryOption.Prefix[] values()
for (MemoryOption.Prefix c : MemoryOption.Prefix.values()) System.out.println(c);
public static MemoryOption.Prefix 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 nullpublic String getJavaChar()
public String getJavaFormat(String value)
public String toString()
toString
in class Enum<MemoryOption.Prefix>