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
Booleans. Numbers are handled for backwards compatibility with
versions of the mapper written before the DynamoDB native Boolean type
was added, which stored Java Booleans as either the Number 0 (false)
or 1 (true).-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanUnmarshallerinstance()voidtypeCheck(AttributeValue value, Method setter) Asserts that the value given can be processed using the setter given.unmarshall(AttributeValue value) Unmarshalls theAttributeValuegiven into an instance of the appropriate type, as determined byDynamoDBReflectorandDynamoDBMapper
-
Method Details
-
instance
-
typeCheck
Description copied from interface:ArgumentUnmarshallerAsserts that the value given can be processed using the setter given.- Specified by:
typeCheckin interfaceArgumentUnmarshaller
-
unmarshall
Description copied from interface:ArgumentUnmarshallerUnmarshalls theAttributeValuegiven into an instance of the appropriate type, as determined byDynamoDBReflectorandDynamoDBMapper- Specified by:
unmarshallin interfaceArgumentUnmarshaller
-