Class LocaleStringConverter
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.converter.string.LocaleStringConverter
-
- All Implemented Interfaces:
StringConverter<Locale>
@ThreadSafe @Immutable public class LocaleStringConverter extends Object implements StringConverter<Locale>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocaleStringConverter
create()
Locale
fromString(String string)
Convert the provided string into an object.String
toString(Locale locale)
Convert the provided object into a string.EnhancedType<Locale>
type()
The type supported by this converter.
-
-
-
Method Detail
-
create
public static LocaleStringConverter create()
-
type
public EnhancedType<Locale> type()
Description copied from interface:StringConverter
The type supported by this converter.- Specified by:
type
in interfaceStringConverter<Locale>
-
fromString
public Locale fromString(String string)
Description copied from interface:StringConverter
Convert the provided string into an object.- Specified by:
fromString
in interfaceStringConverter<Locale>
-
toString
public String toString(Locale locale)
Description copied from interface:StringConverter
Convert the provided object into a string.- Specified by:
toString
in interfaceStringConverter<Locale>
-
-