Package org.cyclopsgroup.caff.conversion
Class SimpleConverter<T>
java.lang.Object
org.cyclopsgroup.caff.conversion.SimpleConverter<T>
- Type Parameters:
T- Type of value to convert from/to
- All Implemented Interfaces:
Converter<T>
Converter implementation that does naive conversion for
String, CharSequence,
char[], BigDecimal, BigInteger and all primitives- Author:
- Jiaqi Guo
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleConverter
- Parameters:
type- Type of value to convert from/to
-
-
Method Details
-
fromCharacters
- Specified by:
fromCharactersin interfaceConverter<T>- Parameters:
text- Character sequence form of value- Returns:
- Converted result
-
toCharacters
- Specified by:
toCharactersin interfaceConverter<T>- Parameters:
value- Object instance- Returns:
- Text form of value
-