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 betweenCharacterandString.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 CharacterStringConvertercreate()CharacterfromString(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:StringConverterThe type supported by this converter.- Specified by:
typein interfaceStringConverter<Character>
-
primitiveType
public EnhancedType<Character> primitiveType()
Description copied from interface:PrimitiveConverterThe type supported by this converter.- Specified by:
primitiveTypein interfacePrimitiveConverter<Character>
-
fromString
public Character fromString(String string)
Description copied from interface:StringConverterConvert the provided string into an object.- Specified by:
fromStringin interfaceStringConverter<Character>
-
-