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

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

This stores values in DynamoDB as a number.

This supports reading numbers between Integer.MIN_VALUE and Integer.MAX_VALUE from DynamoDB. For smaller numbers, consider using ShortAttributeConverter. For larger numbers, consider using 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.