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