Interface ValueMapper<T>
- Type Parameters:
T- Given type
- All Known Implementing Classes:
BooleanValueMapper,DoubleValueMapper,FileValueMapper,IntegerValueMapper,LogLevelMapper,LongValueMapper,MapValueMapper,NegatingBooleanValueMapper,StringValueMapper,URIValueMapper,URLValueMapper
public interface ValueMapper<T>
Transformer for a string to an object of given type
- Author:
- Karel Piwko
-
Method Summary
-
Method Details
-
handles
Checks if given type is supported by this handler- Parameters:
type- Type to be supportedparameters- Types that have to match in case type is generic type- Returns:
trueif this is supported,falseotherwise
-
transform
Returns converted value from a string- Parameters:
value- String value to be converted- Returns:
- Converted object
- Throws:
IllegalArgumentException- If conversion was not possible
-