Package org.fastnate.data.properties
Interface PropertyConverter<T>
- Type Parameters:
T- the (minimum) type of the target value
- All Known Implementing Classes:
BooleanConverter,CharacterConverter,DateConverter,DefaultEntityConverter,EnumConverter,FormatConverter,MapConverter,NumberConverter,UniquePropertyEntityConverter
public interface PropertyConverter<T>
Used to convert a string from an import file to a Java object.
-
Method Summary
-
Method Details
-
of
Converts a function to a PropertyConverter.- Parameters:
converter- the converter that needs no information of the target type- Returns:
- the given converter wrapped as
PropertyConverter
-
convert
Converts a value from import file to Java.- Parameters:
targetType- the type of the target propertyvalue- the value in the import file- Returns:
- the value in Java
-