java.lang.Object
org.litebridgedb.convert.converter.AbstractStringParsingConverter<Character>
org.litebridgedb.convert.converter.CharacterConverter
- All Implemented Interfaces:
Converter<Character>,ConverterFunction<Character>
public class CharacterConverter
extends AbstractStringParsingConverter<Character>
implements Converter<Character>
A converter for
Character values.
Converts values by taking the first character of their string representation.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.litebridgedb.convert.converter.AbstractStringParsingConverter
convertMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridgedb.convert.converter.ConverterFunction
convert
-
Constructor Details
-
CharacterConverter
public CharacterConverter()
-
-
Method Details
-
convertString
Description copied from class:AbstractStringParsingConverterParses a string value into the target type.- Specified by:
convertStringin classAbstractStringParsingConverter<Character>- Parameters:
value- the string value to parse- Returns:
- the parsed value
-
type
Returns the target Java class this converter handles. -
primitiveType
Returns the primitive counterpart of the target class.- Specified by:
primitiveTypein interfaceConverter<Character>- Returns:
char.class
-