Top Description Fields Constructors Methods
com.univocity.parsers.conversions

public final Enum EnumSelector

extends Enum<EnumSelector>
Class Inheritance
Imports
com.univocity.parsers.annotations.EnumOptions

Identifies a property of an enumeration that should be used by EnumOptions to identify an input value. When parsing a given input, values will be compared against one of the properties and if there's a match, the corresponding enumeration value will be used to set the field of an annotated class.

Field Summary

Modifier and TypeField and Description
public static final EnumSelector
CUSTOM_FIELD

Matches the value of a field of the annotated enumeration

public static final EnumSelector
CUSTOM_METHOD

Matches the value of a method of the annotated enumeration

public static final EnumSelector
NAME

Matches the result of Enum#name()

public static final EnumSelector
ORDINAL

Matches the result of Enum#ordinal()

public static final EnumSelector
STRING

Matches the result of Enum#toString() ()}

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EnumSelector
public static EnumSelector[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CUSTOM_FIELDback to summary
public static final EnumSelector CUSTOM_FIELD

Matches the value of a field of the annotated enumeration

CUSTOM_METHODback to summary
public static final EnumSelector CUSTOM_METHOD

Matches the value of a method of the annotated enumeration

NAMEback to summary
public static final EnumSelector NAME

Matches the result of Enum#name()

ORDINALback to summary
public static final EnumSelector ORDINAL

Matches the result of Enum#ordinal()

STRINGback to summary
public static final EnumSelector STRING

Matches the result of Enum#toString() ()}

Constructor Detail

EnumSelectorback to summary
private EnumSelector()

Method Detail

valueOfback to summary
public static EnumSelector valueOf(String name)
valuesback to summary
public static EnumSelector[] values()