Class CharacterStringConverter
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.converter.string.CharacterStringConverter
-
- All Implemented Interfaces:
PrimitiveConverter<Character>
,StringConverter<Character>
@ThreadSafe @Immutable public class CharacterStringConverter extends Object implements StringConverter<Character>, PrimitiveConverter<Character>
A converter betweenCharacter
andString
.This converts values using
Character.toString()
andString.charAt(int)
. If the string value is longer than 1 character, an exception will be raised.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.converter.StringConverter
toString
-
-
-
-
Method Detail
-
create
public static CharacterStringConverter create()
-
type
public EnhancedType<Character> type()
Description copied from interface:StringConverter
The type supported by this converter.- Specified by:
type
in interfaceStringConverter<Character>
-
primitiveType
public EnhancedType<Character> primitiveType()
Description copied from interface:PrimitiveConverter
The type supported by this converter.- Specified by:
primitiveType
in interfacePrimitiveConverter<Character>
-
fromString
public Character fromString(String string)
Description copied from interface:StringConverter
Convert the provided string into an object.- Specified by:
fromString
in interfaceStringConverter<Character>
-
-