Class BooleanToNumberMarshaller
java.lang.Object
com.amazonaws.services.dynamodbv2.datamodeling.marshallers.BooleanToNumberMarshaller
- All Implemented Interfaces:
ArgumentMarshaller, ArgumentMarshaller.NumberAttributeMarshaller
public class BooleanToNumberMarshaller
extends Object
implements ArgumentMarshaller.NumberAttributeMarshaller
A legacy marshaller that marshals Java
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface ArgumentMarshaller
ArgumentMarshaller.BinaryAttributeMarshaller, ArgumentMarshaller.BinarySetAttributeMarshaller, ArgumentMarshaller.BooleanAttributeMarshaller, ArgumentMarshaller.ListAttributeMarshaller, ArgumentMarshaller.MapAttributeMarshaller, ArgumentMarshaller.NumberAttributeMarshaller, ArgumentMarshaller.NumberSetAttributeMarshaller, ArgumentMarshaller.StringAttributeMarshaller, ArgumentMarshaller.StringSetAttributeMarshaller -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanToNumberMarshallerinstance()Marshalls the object given into an AttributeValue.
-
Method Details
-
instance
-
marshall
Description copied from interface:ArgumentMarshallerMarshalls the object given into an AttributeValue.- Specified by:
marshallin interfaceArgumentMarshaller
-