Class GenericEnum
A generic container for Avro enums.
Constructors
Name | Description |
this
(schema)
|
Constructs a generic enum according to the given enum-type schema.
|
Methods
Name | Description |
getEnumOrdinal
(symbol)
|
Returns the ordinal for the given symbol.
|
getSymbol
(n)
|
Returns the symbol corresponding to ordinal n.
|
getSymbol
()
|
Returns the symbol for the current value of this enum.
|
getValue
()
|
Returns the ordinal for the current value of the enum.
|
setEnumOrdinal
(n)
|
Set the value for the enum according to the given ordinal.
|
setSymbol
(symbol)
|
Set the value for this enum according to the given symbol.
|