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 JavaBoolean
s. Numbers are handled for backwards compatibility with versions of the mapper written before the DynamoDB native Boolean type was added, which stored JavaBoolean
s 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 BooleanUnmarshaller
instance()
void
typeCheck(AttributeValue value, Method setter)
Asserts that the value given can be processed using the setter given.Object
unmarshall(AttributeValue value)
Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
-
-
-
Method Detail
-
instance
public static BooleanUnmarshaller instance()
-
typeCheck
public void typeCheck(AttributeValue value, Method setter)
Description copied from interface:ArgumentUnmarshaller
Asserts that the value given can be processed using the setter given.- Specified by:
typeCheck
in interfaceArgumentUnmarshaller
-
unmarshall
public Object unmarshall(AttributeValue value)
Description copied from interface:ArgumentUnmarshaller
Unmarshalls theAttributeValue
given into an instance of the appropriate type, as determined byDynamoDBReflector
andDynamoDBMapper
- Specified by:
unmarshall
in interfaceArgumentUnmarshaller
-
-