public final class CsvEnumConverter extends Object implements CsvPropertyConverter<Enum<?>>
Constructor and Description |
---|
CsvEnumConverter() |
Modifier and Type | Method and Description |
---|---|
Enum<?> |
convert(Class<? extends Enum<?>> targetType,
String value)
Converts a value from CSV to Java.
|
public Enum<?> convert(Class<? extends Enum<?>> targetType, String value)
CsvPropertyConverter
convert
in interface CsvPropertyConverter<Enum<?>>
targetType
- the type of the target propertyvalue
- the value in CSVCopyright © 2016 fastnate.org. All rights reserved.