edu.wisc.ssec.mcidasv.startupmanager.options
Enum MemoryOption.Prefix
java.lang.Object
java.lang.Enum<MemoryOption.Prefix>
edu.wisc.ssec.mcidasv.startupmanager.options.MemoryOption.Prefix
- All Implemented Interfaces:
- Serializable, Comparable<MemoryOption.Prefix>
- Enclosing class:
- MemoryOption
public static enum MemoryOption.Prefix
- extends Enum<MemoryOption.Prefix>
MEGA
public static final MemoryOption.Prefix MEGA
GIGA
public static final MemoryOption.Prefix GIGA
TERA
public static final MemoryOption.Prefix TERA
PERCENT
public static final MemoryOption.Prefix PERCENT
javaChar
private final String javaChar
name
private final String name
values
public static MemoryOption.Prefix[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MemoryOption.Prefix c : MemoryOption.Prefix.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MemoryOption.Prefix valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getJavaChar
public String getJavaChar()
getName
public String getName()
getJavaFormat
public String getJavaFormat(String value)
toString
public String toString()
- Overrides:
toString
in class Enum<MemoryOption.Prefix>