Enum IncrementingType
- java.lang.Object
-
- java.lang.Enum<IncrementingType>
-
- fr.paris.lutece.plugins.appointment.modules.desk.util.IncrementingType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IncrementingType>
public enum IncrementingType extends java.lang.Enum<IncrementingType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLTIMEHALFTIMEAFTERNOONHALFTIMEMORNINGLACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()intgetValue()static IncrementingTypevalueOf(int value)Returns the enum constant of this type with the specified name.static IncrementingTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IncrementingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LACE
public static final IncrementingType LACE
-
HALFTIMEMORNING
public static final IncrementingType HALFTIMEMORNING
-
HALFTIMEAFTERNOON
public static final IncrementingType HALFTIMEAFTERNOON
-
FULLTIME
public static final IncrementingType FULLTIME
-
-
Method Detail
-
values
public static IncrementingType[] 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 (IncrementingType c : IncrementingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IncrementingType 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 namejava.lang.NullPointerException- if the argument is null
-
getKey
public java.lang.String getKey()
-
getValue
public int getValue()
-
valueOf
public static IncrementingType valueOf(int value)
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:
value- 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 namejava.lang.NullPointerException- if the argument is null
-
-