com.endeca.portal.format
Enum DurationFormatSettings.Precision

java.lang.Object
  extended by java.lang.Enum<DurationFormatSettings.Precision>
      extended by com.endeca.portal.format.DurationFormatSettings.Precision
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DurationFormatSettings.Precision>
Enclosing interface:
DurationFormatSettings

public static enum DurationFormatSettings.Precision
extends java.lang.Enum<DurationFormatSettings.Precision>


Enum Constant Summary
DAY
           
DEFAULT
           
HOU
           
MIL
           
MIN
           
SEC
           
 
Method Summary
static DurationFormatSettings.Precision valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DurationFormatSettings.Precision[] 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

DEFAULT

public static final DurationFormatSettings.Precision DEFAULT

DAY

public static final DurationFormatSettings.Precision DAY

HOU

public static final DurationFormatSettings.Precision HOU

MIN

public static final DurationFormatSettings.Precision MIN

SEC

public static final DurationFormatSettings.Precision SEC

MIL

public static final DurationFormatSettings.Precision MIL
Method Detail

values

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

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

valueOf

public static DurationFormatSettings.Precision 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