com.jstatcom.util
Enum MaturityUnits

java.lang.Object
  extended by java.lang.Enum<MaturityUnits>
      extended by com.jstatcom.util.MaturityUnits
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MaturityUnits>

public enum MaturityUnits
extends java.lang.Enum<MaturityUnits>

Enumeration of all valid units for a maturity.

Author:
Markus Kraetzig

Enum Constant Summary
DAYS
           
MONTHS
           
YEARS
           
 
Method Summary
static MaturityUnits valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MaturityUnits[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DAYS

public static final MaturityUnits DAYS

MONTHS

public static final MaturityUnits MONTHS

YEARS

public static final MaturityUnits YEARS
Method Detail

values

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

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

valueOf

public static MaturityUnits valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null