T
- the type of the returned valuepublic class CsvFormatConverter<T> extends Object implements CsvPropertyConverter<T>
Format
.Constructor and Description |
---|
CsvFormatConverter(Format... formats)
Creates a new instance of
CsvFormatConverter . |
Modifier and Type | Method and Description |
---|---|
T |
convert(Class<? extends T> targetType,
String value)
Converts a value from CSV to Java.
|
public CsvFormatConverter(Format... formats)
CsvFormatConverter
.formats
- the list of formats to apply, the first that throws no ParseException
is usedpublic T convert(Class<? extends T> targetType, String value)
CsvPropertyConverter
convert
in interface CsvPropertyConverter<T>
targetType
- the type of the target propertyvalue
- the value in CSVCopyright © 2016 fastnate.org. All rights reserved.