Class BooleanStringConverter
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.converter.string.BooleanStringConverter
-
- All Implemented Interfaces:
PrimitiveConverter<Boolean>
,StringConverter<Boolean>
@ThreadSafe @Immutable public class BooleanStringConverter extends Object implements StringConverter<Boolean>, PrimitiveConverter<Boolean>
A converter betweenBigInteger
andString
.This converts values to strings using
Boolean.toString()
. This converts the literal string values "true" and "false" to a boolean. Any other string values will result in an exception.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BooleanStringConverter
create()
Boolean
fromString(String string)
Convert the provided string into an object.EnhancedType<Boolean>
primitiveType()
The type supported by this converter.EnhancedType<Boolean>
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 BooleanStringConverter create()
-
type
public EnhancedType<Boolean> type()
Description copied from interface:StringConverter
The type supported by this converter.- Specified by:
type
in interfaceStringConverter<Boolean>
-
primitiveType
public EnhancedType<Boolean> primitiveType()
Description copied from interface:PrimitiveConverter
The type supported by this converter.- Specified by:
primitiveType
in interfacePrimitiveConverter<Boolean>
-
fromString
public Boolean fromString(String string)
Description copied from interface:StringConverter
Convert the provided string into an object.- Specified by:
fromString
in interfaceStringConverter<Boolean>
-
-