edu.wisc.ssec.mcidasv.startupmanager.options
Enum MemoryOption.Prefix

java.lang.Object
  extended by java.lang.Enum<MemoryOption.Prefix>
      extended by 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>


Enum Constant Summary
GIGA
           
MEGA
           
PERCENT
           
TERA
           
 
Field Summary
private  String javaChar
           
private  String name
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

javaChar

private final String javaChar

name

private final String name
Method Detail

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>