@ThreadSafe @Immutable public class CharacterStringConverter extends Object implements StringConverter<Character>, PrimitiveConverter<Character>
Character and String.
This converts values using Character.toString() and String.charAt(int). If the string value is longer
than 1 character, an exception will be raised.
| Modifier and Type | Method and Description |
|---|---|
static CharacterStringConverter |
create() |
Character |
fromString(String string)
Convert the provided string into an object.
|
EnhancedType<Character> |
primitiveType()
The type supported by this converter.
|
EnhancedType<Character> |
type()
The type supported by this converter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic static CharacterStringConverter create()
public EnhancedType<Character> type()
StringConvertertype in interface StringConverter<Character>public EnhancedType<Character> primitiveType()
PrimitiveConverterprimitiveType in interface PrimitiveConverter<Character>public Character fromString(String string)
StringConverterfromString in interface StringConverter<Character>Copyright © 2020. All rights reserved.