public class BooleanToNumberMarshaller extends java.lang.Object implements ArgumentMarshaller.NumberAttributeMarshaller
Booleans
into DynamoDB
Numbers, representing true
as '1' and false
as '0'. Retained
for backwards compatibility with older versions of the mapper which don't
know about the DynamoDB BOOL type.ArgumentMarshaller.BinaryAttributeMarshaller, ArgumentMarshaller.BinarySetAttributeMarshaller, ArgumentMarshaller.BooleanAttributeMarshaller, ArgumentMarshaller.ListAttributeMarshaller, ArgumentMarshaller.MapAttributeMarshaller, ArgumentMarshaller.NumberAttributeMarshaller, ArgumentMarshaller.NumberSetAttributeMarshaller, ArgumentMarshaller.StringAttributeMarshaller, ArgumentMarshaller.StringSetAttributeMarshaller
Modifier and Type | Field and Description |
---|---|
private static BooleanToNumberMarshaller |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
BooleanToNumberMarshaller() |
Modifier and Type | Method and Description |
---|---|
static BooleanToNumberMarshaller |
instance() |
AttributeValue |
marshall(java.lang.Object obj)
Marshalls the object given into an AttributeValue.
|
private static final BooleanToNumberMarshaller INSTANCE
public static BooleanToNumberMarshaller instance()
public AttributeValue marshall(java.lang.Object obj)
ArgumentMarshaller
marshall
in interface ArgumentMarshaller