@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, wait
toString
public static CharacterStringConverter create()
public EnhancedType<Character> type()
StringConverter
type
in interface StringConverter<Character>
public EnhancedType<Character> primitiveType()
PrimitiveConverter
primitiveType
in interface PrimitiveConverter<Character>
public Character fromString(String string)
StringConverter
fromString
in interface StringConverter<Character>
Copyright © 2021. All rights reserved.