public interface IEnumValue
Defines a value of an enumeration.
Modifier and Type | Method and Description |
---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
String |
name()
Returns the name of this enumeration value.
|
Object[] getAllValues()
Returns the array of all values defined in the class.
IEnumValue getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
rawValue
- The raw value.IEnumValue getEnumValueByName(String name)
Returns the enumeration value by its name.
name
- The name of the enumeration value.RawIntegerType getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
int getRawValue()
Returns the raw value of this enumeration value.
String name()
Returns the name of this enumeration value.