java.lang.Comparable<FieldValue>, FieldValuepublic interface EnumValue extends FieldValue
FieldValue to represent a single value in an
enumeration. Enumeration values are represented as strings.| Modifier and Type | Method | Description |
|---|---|---|
EnumValue |
clone() |
Returns a deep copy of this object.
|
java.lang.String |
get() |
Gets the string value of the enumeration.
|
EnumDef |
getDefinition() |
Returns the
EnumDef instance that defines this value. |
int |
getIndex() |
Returns the index of the value in the enumeration definition.
|
asArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asIndexKey, asInteger, asLong, asMap, asNumber, asPrimaryKey, asRecord, asRow, asString, asTimestamp, getType, isArray, isAtomic, isBinary, isBoolean, isComplex, isDouble, isEMPTY, isEnum, isFixedBinary, isFloat, isIndexKey, isInteger, isJsonNull, isLong, isMap, isNull, isNumber, isNumeric, isPrimaryKey, isRecord, isRow, isString, isTimestamp, toJsonStringEnumDef getDefinition()
EnumDef instance that defines this value.getDefinition in interface FieldValuejava.lang.String get()
int getIndex()
getDefinition()EnumValue clone()
clone in interface FieldValueCopyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.