ArgumentUnmarshallerpublic class BooleanUnmarshaller extends 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 | 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)
ArgumentUnmarshallertypeCheck in interface ArgumentUnmarshallerpublic Object unmarshall(AttributeValue value)
ArgumentUnmarshallerAttributeValue given into an instance of the
appropriate type, as determined by DynamoDbReflector and
DynamoDbMapperunmarshall in interface ArgumentUnmarshallerCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.