public static enum MemoryOption.Prefix extends java.lang.Enum<MemoryOption.Prefix>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
javaChar |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJavaChar() |
java.lang.String |
getJavaFormat(java.lang.String value) |
java.lang.String |
getName() |
java.lang.String |
toString() |
static MemoryOption.Prefix |
valueOf(java.lang.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
private final java.lang.String javaChar
private final java.lang.String name
public static MemoryOption.Prefix[] values()
for (MemoryOption.Prefix c : MemoryOption.Prefix.values()) System.out.println(c);
public static MemoryOption.Prefix 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 getJavaChar()
public java.lang.String getName()
public java.lang.String getJavaFormat(java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Enum<MemoryOption.Prefix>