org.fastnate.data.csv.CsvPropertyConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastnate-data Show documentation
Show all versions of fastnate-data Show documentation
The Fastnate Data Importer for offline SQL generation
package org.fastnate.data.csv;
/**
* Used to convert a CSV string to an Java object.
*
* @param
* the (minimum) type of the target value
*/
public interface CsvPropertyConverter {
/**
* Converts a value from CSV to Java.
*
* @param targetType
* the type of the target property
* @param value
* the value in CSV
* @return the value in Java
*/
T convert(Class extends T> targetType, String value);
}