Package adams.parser
Enum TimeAmount.Note
- java.lang.Object
-
- java.lang.Enum<TimeAmount.Note>
-
- adams.parser.TimeAmount.Note
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeAmount.Note>
- Enclosing class:
- TimeAmount
public static enum TimeAmount.Note extends Enum<TimeAmount.Note>
enum of notes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSINESS_DAYS
the amount represents businessdays.NONE
no notes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeAmount.Note
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeAmount.Note[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TimeAmount.Note NONE
no notes.
-
BUSINESS_DAYS
public static final TimeAmount.Note BUSINESS_DAYS
the amount represents businessdays.
-
-
Method Detail
-
values
public static TimeAmount.Note[] 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 (TimeAmount.Note c : TimeAmount.Note.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeAmount.Note 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 nameNullPointerException
- if the argument is null
-
-