Package | Description |
---|---|
com.univocity.parsers.conversions |
Modifier and Type | Method | 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 | Description |
---|---|---|
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 |
Constructor | 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. |