java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.attribute.ShortAttributeConverter
All Implemented Interfaces:
AttributeConverter<Short>, PrimitiveConverter<Short>

@ThreadSafe @Immutable public final class ShortAttributeConverter extends Object implements AttributeConverter<Short>, PrimitiveConverter<Short>
A converter between Short and AttributeValue.

This stores values in DynamoDB as a number.

This supports reading numbers between Short.MIN_VALUE and Short.MAX_VALUE from DynamoDB. For larger numbers, consider using IntegerAttributeConverter, LongAttributeConverter or BigIntegerAttributeConverter. Numbers outside of the supported range will cause a NumberFormatException on conversion.

This does not support reading decimal numbers. For decimal numbers, consider using FloatAttributeConverter, DoubleAttributeConverter or BigDecimalAttributeConverter. Decimal numbers will cause a NumberFormatException on conversion.