Package org.cyclopsgroup.caff.conversion
Class NullFriendlyConverter<T>
java.lang.Object
org.cyclopsgroup.caff.conversion.NullFriendlyConverter<T>
- Type Parameters:
T- Type of value to convert from/to
- All Implemented Interfaces:
Converter<T>
A converter that maps between empty CharSequence and NULL
- Author:
- Jiaqi Guo
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NullFriendlyConverter
- Parameters:
proxy- Internal converter that does actual conversion
-
-
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
-