Package | Description |
---|---|
com.univocity.parsers.conversions |
Modifier and Type | Field and Description |
---|---|
private EnumSelector[] |
EnumConversion.selectors |
Modifier and Type | Method and Description |
---|---|
static EnumSelector |
EnumSelector.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumSelector[] |
EnumSelector.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
EnumConversion.getKey(T constant,
EnumSelector conversionType) |
static <T extends java.lang.Enum<T>> |
Conversions.toEnum(java.lang.Class<T> enumType,
EnumSelector... selectors)
Returns a new instance of
EnumConversion |
static <T extends java.lang.Enum<T>> |
Conversions.toEnum(java.lang.Class<T> enumType,
java.lang.String customEnumElement,
EnumSelector... selectors)
Returns a new instance of
EnumConversion |
static <T extends java.lang.Enum<T>> |
Conversions.toEnum(java.lang.Class<T> enumType,
T valueIfStringIsNull,
java.lang.String valueIfEnumIsNull,
java.lang.String customEnumElement,
EnumSelector... selectors)
Returns a new instance of
EnumConversion |
Modifier and Type | Method and Description |
---|---|
private void |
EnumConversion.initializeMappings(java.util.Set<EnumSelector> conversionTypes) |
Constructor and Description |
---|
EnumConversion(java.lang.Class<T> enumType,
EnumSelector... selectors)
Defines a conversion for an enumeration type that will attempt to match Strings the list of
EnumSelector s, in the specified order. |
EnumConversion(java.lang.Class<T> enumType,
java.lang.String customEnumElement,
EnumSelector... selectors)
Defines a conversion for an enumeration type that will attempt to match Strings the list of
EnumSelector s, in the specified order. |
EnumConversion(java.lang.Class<T> enumType,
T valueIfStringIsNull,
java.lang.String valueIfEnumIsNull,
java.lang.String customEnumElement,
EnumSelector... selectors)
Defines a conversion for an enumeration type that will attempt to match Strings the list of
EnumSelector s, in the specified order. |