IEnumValue
Leave feedback
On this page
public interface IEnumValue
Defines a value of an enumeration.
| Method | Description |
|---|---|
| getAllValues() | Returns the array of all values defined in the class. |
| getEnumValueByRawValue(int rawValue) | Returns the enumeration value by the raw value associated with it. |
| getEnumValueByName(String name) | Returns the enumeration value by its name. |
| getRawValueType() | Returns the underlying type of the raw value of this enumeration value. |
| getRawValue() | Returns the raw value of this enumeration value. |
| name() | Returns the name of this enumeration value. |
public abstract Object[] getAllValues()
Returns the array of all values defined in the class.
Returns: java.lang.Object[] - The array of all values defined in the class.
public abstract IEnumValue getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rawValue | int | The raw value. |
Returns: IEnumValue - The enumeration value.
public abstract IEnumValue getEnumValueByName(String name)
Returns the enumeration value by its name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the enumeration value. |
Returns: IEnumValue - The enumeration value.
public abstract RawIntegerType getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
Returns: RawIntegerType - The underlying type of the raw value.
public abstract int getRawValue()
Returns the raw value of this enumeration value.
Returns: int - The raw value.
public abstract String name()
Returns the name of this enumeration value.
Returns: java.lang.String - The name.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.