- java.lang.Object
-
- java.lang.Enum<EditItemType>
-
- com.thecoderscorner.menu.domain.EditItemType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EditItemType>
public enum EditItemType extends java.lang.Enum<EditItemType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GREGORIAN_DATEIP_ADDRESSPLAIN_TEXTTIME_12HTIME_24_HUNDREDSTIME_24H
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EditItemTypefromId(int id)intgetMsgId()static EditItemTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EditItemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN_TEXT
public static final EditItemType PLAIN_TEXT
-
IP_ADDRESS
public static final EditItemType IP_ADDRESS
-
TIME_24H
public static final EditItemType TIME_24H
-
TIME_12H
public static final EditItemType TIME_12H
-
TIME_24_HUNDREDS
public static final EditItemType TIME_24_HUNDREDS
-
GREGORIAN_DATE
public static final EditItemType GREGORIAN_DATE
-
-
Method Detail
-
values
public static EditItemType[] 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 (EditItemType c : EditItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditItemType 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
-
getMsgId
public int getMsgId()
-
fromId
public static EditItemType fromId(int id)
-
-