EnumFieldType
fun <V : Enum<V>> EnumFieldType(enumValues: Array<V>, fieldValue: EnumValue<V, *>, type: FieldType<*, *>, termType: KClass<*>)
Parameters
V
the type of enum
enumValues
an array of enum variants. Usually got by calling enumValues function.
fieldValue
function interface that takes enum variant and returns field value.
type
original field type
termType
should be V::class