Class BooleanUnmarshaller
java.lang.Object
com.amazonaws.services.dynamodbv2.datamodeling.unmarshallers.BooleanUnmarshaller
- All Implemented Interfaces:
ArgumentUnmarshaller
An unmarshaller that unmarshals DynamoDB Bools (or Numbers) into Java
Boolean
s. Numbers are handled for backwards compatibility with
versions of the mapper written before the DynamoDB native Boolean type
was added, which stored Java Boolean
s as either the Number 0 (false)
or 1 (true).-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanUnmarshaller
instance()
void
typeCheck
(AttributeValue value, Method setter) Asserts that the value given can be processed using the setter given.unmarshall
(AttributeValue value) Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
-
Method Details
-
instance
-
typeCheck
Description copied from interface:ArgumentUnmarshaller
Asserts that the value given can be processed using the setter given.- Specified by:
typeCheck
in interfaceArgumentUnmarshaller
-
unmarshall
Description copied from interface:ArgumentUnmarshaller
Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
- Specified by:
unmarshall
in interfaceArgumentUnmarshaller
-