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 between
BigInteger and String.
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
Modifier and TypeMethodDescriptionstatic BooleanStringConvertercreate()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<Boolean>
-
primitiveType
Description copied from interface:PrimitiveConverterThe type supported by this converter.- Specified by:
primitiveTypein interfacePrimitiveConverter<Boolean>
-
fromString
Description copied from interface:StringConverterConvert the provided string into an object.- Specified by:
fromStringin interfaceStringConverter<Boolean>
-