Package adalid.commons.enums
Enum EnumBit
- java.lang.Object
-
- java.lang.Enum<EnumBit>
-
- adalid.commons.enums.EnumBit
-
- All Implemented Interfaces:
ListOption,Serializable,Comparable<EnumBit>
public enum EnumBit extends Enum<EnumBit> implements ListOption
- Author:
- Jorge Campins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()StringgetLabel()StringgetLabel(EnumBitLabelSet bls)static ListOptionsgetListOptions()static ListOptionsgetListOptions(EnumBitLabelSet bls)static ListOptionsgetListOptions(EnumBitLabelSet bls, boolean anulable)static ListOptionsgetListOptions(EnumBitLabelSet bls, boolean anulable, boolean ordenado)StringgetOptionDescription()StringgetOptionLabel()ObjectgetOptionValue()intintValue()booleanisNoSelectionOption()booleanisOptionDisabled()static EnumBitvalueOf(boolean b)Returns the enum constant of this type with the specified name.static EnumBitvalueOf(char c)Returns the enum constant of this type with the specified name.static EnumBitvalueOf(Boolean b)Returns the enum constant of this type with the specified name.static EnumBitvalueOf(Integer i)Returns the enum constant of this type with the specified name.static EnumBitvalueOf(Long l)Returns the enum constant of this type with the specified name.static EnumBitvalueOf(String name)Returns the enum constant of this type with the specified name.static EnumBit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static EnumBit[] 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 (EnumBit c : EnumBit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumBit 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
-
valueOf
public static EnumBit valueOf(boolean b)
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:
b- 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
-
valueOf
public static EnumBit valueOf(Boolean b)
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:
b- 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
-
valueOf
public static EnumBit valueOf(char c)
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:
c- 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
-
valueOf
public static EnumBit valueOf(Integer i)
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:
i- 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
-
valueOf
public static EnumBit valueOf(Long l)
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:
l- 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
-
getListOptions
public static ListOptions getListOptions()
-
getListOptions
public static ListOptions getListOptions(EnumBitLabelSet bls)
-
getListOptions
public static ListOptions getListOptions(EnumBitLabelSet bls, boolean anulable)
-
getListOptions
public static ListOptions getListOptions(EnumBitLabelSet bls, boolean anulable, boolean ordenado)
-
booleanValue
public boolean booleanValue()
-
intValue
public int intValue()
-
getLabel
public String getLabel()
-
getLabel
public String getLabel(EnumBitLabelSet bls)
-
getOptionValue
public Object getOptionValue()
- Specified by:
getOptionValuein interfaceListOption
-
getOptionLabel
public String getOptionLabel()
- Specified by:
getOptionLabelin interfaceListOption
-
getOptionDescription
public String getOptionDescription()
- Specified by:
getOptionDescriptionin interfaceListOption
-
isOptionDisabled
public boolean isOptionDisabled()
- Specified by:
isOptionDisabledin interfaceListOption
-
isNoSelectionOption
public boolean isNoSelectionOption()
- Specified by:
isNoSelectionOptionin interfaceListOption
-
-