public 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 | Field and Description |
---|---|
private static BooleanUnmarshaller |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
BooleanUnmarshaller() |
Modifier and Type | Method and Description |
---|---|
static BooleanUnmarshaller |
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 |
private static final BooleanUnmarshaller INSTANCE
public static BooleanUnmarshaller instance()
public void typeCheck(AttributeValue value, java.lang.reflect.Method setter)
ArgumentUnmarshaller
typeCheck
in interface ArgumentUnmarshaller
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