Package com.thecoderscorner.menu.domain
Enum BooleanMenuItem.BooleanNaming
- java.lang.Object
-
- java.lang.Enum<BooleanMenuItem.BooleanNaming>
-
- com.thecoderscorner.menu.domain.BooleanMenuItem.BooleanNaming
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BooleanMenuItem.BooleanNaming>
- Enclosing class:
- BooleanMenuItem
public static enum BooleanMenuItem.BooleanNaming extends java.lang.Enum<BooleanMenuItem.BooleanNaming>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_OFFTRUE_FALSEYES_NO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanMenuItem.BooleanNamingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BooleanMenuItem.BooleanNaming[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_OFF
public static final BooleanMenuItem.BooleanNaming ON_OFF
-
YES_NO
public static final BooleanMenuItem.BooleanNaming YES_NO
-
TRUE_FALSE
public static final BooleanMenuItem.BooleanNaming TRUE_FALSE
-
-
Method Detail
-
values
public static BooleanMenuItem.BooleanNaming[] 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 (BooleanMenuItem.BooleanNaming c : BooleanMenuItem.BooleanNaming.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BooleanMenuItem.BooleanNaming 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
-
-