Package io.permazen.core
Class EnumField
A field that contains a value chosen from in an ordered list of unique
String
identifiers.
Two instances of this class are considered compatible only when their ordered lists of identifiers are identical.
-
Method Summary
Modifier and TypeMethodDescriptionGet theEnumValueEncoding
associated with this instance.toString()
<R> R
visit
(FieldSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.core.SimpleField
getCompositeIndexes, getFullName, getIndex, getParentField, getValue, hasDefaultValue, isIndexed, remapObjectId, remapsObjectId, setValue
Methods inherited from class io.permazen.core.Field
getKey, getObjType, getTypeToken
Methods inherited from class io.permazen.core.SchemaItem
getName, getSchema, getSchemaId, getStorageId
-
Method Details
-
getEncoding
Get theEnumValueEncoding
associated with this instance.- Overrides:
getEncoding
in classSimpleField<EnumValue>
- Returns:
- this field's type
-
visit
Description copied from class:Field
Apply visitor pattern.- Overrides:
visit
in classSimpleField<EnumValue>
- Type Parameters:
R
- visitor return type- Parameters:
target
- target to invoke- Returns:
- return value from the method of
target
corresponding to this instance's type
-
toString
- Overrides:
toString
in classSimpleField<EnumValue>
-