Package adalid.commons.enums
Enum Class EnumBit
- All Implemented Interfaces:
ListOption,Serializable,Comparable<EnumBit>,Constable
- Author:
- Jorge Campins
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()getLabel(EnumBitLabelSet bls) static ListOptionsstatic ListOptionsstatic ListOptionsgetListOptions(EnumBitLabelSet bls, boolean anulable) static ListOptionsgetListOptions(EnumBitLabelSet bls, boolean anulable, boolean ordenado) intintValue()booleanbooleanstatic EnumBitvalueOf(boolean b) Returns the enum constant of this class with the specified name.static EnumBitvalueOf(char c) Returns the enum constant of this class with the specified name.static EnumBitReturns the enum constant of this class with the specified name.static EnumBitReturns the enum constant of this class with the specified name.static EnumBitReturns the enum constant of this class with the specified name.static EnumBitReturns the enum constant of this class with the specified name.static EnumBit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUE
-
FALSE
-
-
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
-
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:
b- 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
-
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:
b- 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
-
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:
c- 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
-
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:
i- 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
-
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:
l- 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
-
getListOptions
-
getListOptions
-
getListOptions
-
getListOptions
-
booleanValue
public boolean booleanValue() -
intValue
public int intValue() -
getLabel
-
getLabel
-
getOptionValue
- Specified by:
getOptionValuein interfaceListOption
-
getOptionLabel
- Specified by:
getOptionLabelin interfaceListOption
-
getOptionDescription
- Specified by:
getOptionDescriptionin interfaceListOption
-
isOptionDisabled
public boolean isOptionDisabled()- Specified by:
isOptionDisabledin interfaceListOption
-
isNoSelectionOption
public boolean isNoSelectionOption()- Specified by:
isNoSelectionOptionin interfaceListOption
-