org.skife.config
Enum DataAmountUnit

java.lang.Object
  extended by java.lang.Enum<DataAmountUnit>
      extended by org.skife.config.DataAmountUnit
All Implemented Interfaces:
Serializable, Comparable<DataAmountUnit>

public enum DataAmountUnit
extends Enum<DataAmountUnit>


Enum Constant Summary
EXABYTE
           
EXIBYTE
           
GIBIBYTE
           
GIGABYTE
           
KIBIBYTE
           
KILOBYTE
           
MEBIBYTE
           
MEGABYTE
           
PEBIBYTE
           
PETABYTE
           
TEBIBYTE
           
TERABYTE
           
 
Method Summary
static DataAmountUnit fromString(String text)
           
 long getFactor()
           
 String getSymbol()
           
static DataAmountUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataAmountUnit[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

KIBIBYTE

public static final DataAmountUnit KIBIBYTE

MEBIBYTE

public static final DataAmountUnit MEBIBYTE

GIBIBYTE

public static final DataAmountUnit GIBIBYTE

TEBIBYTE

public static final DataAmountUnit TEBIBYTE

PEBIBYTE

public static final DataAmountUnit PEBIBYTE

EXIBYTE

public static final DataAmountUnit EXIBYTE

KILOBYTE

public static final DataAmountUnit KILOBYTE

MEGABYTE

public static final DataAmountUnit MEGABYTE

GIGABYTE

public static final DataAmountUnit GIGABYTE

TERABYTE

public static final DataAmountUnit TERABYTE

PETABYTE

public static final DataAmountUnit PETABYTE

EXABYTE

public static final DataAmountUnit EXABYTE
Method Detail

values

public static DataAmountUnit[] 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 (DataAmountUnit c : DataAmountUnit.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataAmountUnit 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

getSymbol

public String getSymbol()

getFactor

public long getFactor()

fromString

public static DataAmountUnit fromString(String text)


Copyright © 2011. All Rights Reserved.