Package com.thecoderscorner.menu.domain
Enum Class EditItemType
- All Implemented Interfaces:
Serializable,Comparable<EditItemType>,java.lang.constant.Constable
Text menu items can represent several types of value and as such the edit type must be defined.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis field represents a gregorian dateThis field represents an IP addressThis field has no validation, it is plain textThis field represents a time in 12H format with secondsThis field represents a 12H time in minutesThis field represents a time in 24H format down to hundreds of a secondThis field represents a time in 24H format with secondsThis field represents a 24H time in minutesThis field represents a time duration in hundredsThis field represents a time duration in seconds -
Method Summary
Modifier and TypeMethodDescriptionstatic EditItemTypefromId(int id) intgetMsgId()static EditItemTypeReturns the enum constant of this class with the specified name.static EditItemType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN_TEXT
This field has no validation, it is plain text -
IP_ADDRESS
This field represents an IP address -
TIME_24H
This field represents a time in 24H format with seconds -
TIME_12H
This field represents a time in 12H format with seconds -
TIME_24_HUNDREDS
This field represents a time in 24H format down to hundreds of a second -
GREGORIAN_DATE
This field represents a gregorian date -
TIME_DURATION_SECONDS
This field represents a time duration in seconds -
TIME_DURATION_HUNDREDS
This field represents a time duration in hundreds -
TIME_24H_HHMM
This field represents a 24H time in minutes -
TIME_12H_HHMM
This field represents a 12H time in minutes
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getMsgId
public int getMsgId() -
fromId
-