public class BooleanUnmarshaller extends Object implements ArgumentUnmarshaller
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).Modifier and Type | Method and 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 the
AttributeValue given into an instance of the
appropriate type, as determined by DynamoDBReflector and
DynamoDBMapper |
public static BooleanUnmarshaller instance()
public void typeCheck(AttributeValue value, Method setter)
ArgumentUnmarshaller
typeCheck
in interface ArgumentUnmarshaller
public Object unmarshall(AttributeValue value)
ArgumentUnmarshaller
AttributeValue
given into an instance of the
appropriate type, as determined by DynamoDBReflector
and
DynamoDBMapper
unmarshall
in interface ArgumentUnmarshaller
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.