Class BooleanUnmarshaller
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.datamodeling.unmarshallers.BooleanUnmarshaller
-
- All Implemented Interfaces:
ArgumentUnmarshaller
public class BooleanUnmarshaller extends Object implements ArgumentUnmarshaller
An unmarshaller that unmarshals DynamoDB Bools (or Numbers) into JavaBooleans. Numbers are handled for backwards compatibility with versions of the mapper written before the DynamoDB native Boolean type was added, which stored JavaBooleans as either the Number 0 (false) or 1 (true).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BooleanUnmarshallerinstance()voidtypeCheck(AttributeValue value, Method setter)Asserts that the value given can be processed using the setter given.Objectunmarshall(AttributeValue value)Unmarshalls theAttributeValuegiven into an instance of the appropriate type, as determined byDynamoDBReflectorandDynamoDBMapper
-
-
-
Method Detail
-
instance
public static BooleanUnmarshaller instance()
-
typeCheck
public void typeCheck(AttributeValue value, Method setter)
Description copied from interface:ArgumentUnmarshallerAsserts that the value given can be processed using the setter given.- Specified by:
typeCheckin interfaceArgumentUnmarshaller
-
unmarshall
public Object unmarshall(AttributeValue value)
Description copied from interface:ArgumentUnmarshallerUnmarshalls theAttributeValuegiven into an instance of the appropriate type, as determined byDynamoDBReflectorandDynamoDBMapper- Specified by:
unmarshallin interfaceArgumentUnmarshaller
-
-