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 between
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterStringConvertercreate()fromString(String string) Convert the provided string into an object.The type supported by this converter.type()The type supported by this converter.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.converter.StringConverter
toString
-
Method Details
-
create
-
type
Description copied from interface:StringConverterThe type supported by this converter.- Specified by:
typein interfaceStringConverter<Character>
-
primitiveType
Description copied from interface:PrimitiveConverterThe type supported by this converter.- Specified by:
primitiveTypein interfacePrimitiveConverter<Character>
-
fromString
Description copied from interface:StringConverterConvert the provided string into an object.- Specified by:
fromStringin interfaceStringConverter<Character>
-