IEnumValue

public interface IEnumValue

Defines a value of an enumeration.

Methods

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.

getAllValues()

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.

getEnumValueByRawValue(int rawValue)

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.

getEnumValueByName(String name)

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.

getRawValueType()

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.

getRawValue()

public abstract int getRawValue()

Returns the raw value of this enumeration value.

Returns: int - The raw value.

name()

public abstract String name()

Returns the name of this enumeration value.

Returns: java.lang.String - The name.