public final class BooleanUnmarshaller extends java.lang.Object implements ArgumentUnmarshaller
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).| Modifier and Type | Method and Description |
|---|---|
static BooleanUnmarshaller |
instance()
returns a singleton instance.
|
void |
typeCheck(AttributeValue value,
java.lang.reflect.Method setter)
Asserts that the value given can be processed using the setter given.
|
java.lang.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()
BooleanUnmarshallerpublic void typeCheck(AttributeValue value, java.lang.reflect.Method setter)
ArgumentUnmarshallertypeCheck in interface ArgumentUnmarshallervalue - the attribute value.setter - the method.public java.lang.Object unmarshall(AttributeValue value)
ArgumentUnmarshallerAttributeValue given into an instance of the
appropriate type, as determined by DynamoDBReflector and
DynamoDBMapperunmarshall in interface ArgumentUnmarshallervalue - the attribute value.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.