public class Primitive extends DynamoDBEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
Primitive.DynamoDBPrimitiveType
Enumerator describing type of DynamoDB data in a Primitive or
PrimitiveList.
|
| Constructor and Description |
|---|
Primitive()
Constructor.
|
Primitive(java.nio.ByteBuffer value)
Constructor.
|
Primitive(java.lang.Integer value,
boolean saveAsNumeric)
Constructor.
|
Primitive(java.lang.Number value)
Constructor.
|
Primitive(java.lang.String value)
Constructor.
|
Primitive(java.lang.String value,
boolean saveAsNumeric)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
asByteBuffer()
Explicitly convert DynamoDBEntry to ByteBuffer.
|
java.lang.Double |
asDouble()
Explicitly convert DynamoDBEntry to Double.
|
java.lang.Float |
asFloat()
Explicitly convert DynamoDBEntry to Float.
|
java.lang.Integer |
asInt()
Explicitly convert DynamoDBEntry to Int.
|
java.lang.Long |
asLong()
Explicitly convert DynamoDBEntry to Long.
|
java.lang.Number |
asNumber()
Explicitly convert DynamoDBEntry to Number.
|
Primitive |
asPrimitive()
Explicitly convert DynamoDBEntry to
Primitive. |
java.lang.String |
asString()
Explicitly convert DynamoDBEntry to String
|
com.amazonaws.services.dynamodbv2.model.AttributeValue |
convertToAttributeValue()
Converts a
DynamoDBEntry to AttributeValue |
boolean |
equals(java.lang.Object obj) |
Primitive.DynamoDBPrimitiveType |
getType()
Returns the DynamoDBPrimitive Type.
|
java.lang.Object |
getValue()
The primitive value.
|
int |
hashCode() |
asBoolean, asDocument, asDynamoDBList, asPrimitiveList, convertToAttributeUpdateValue, toStringpublic Primitive()
public Primitive(java.lang.String value)
value - a primitive string.public Primitive(java.lang.Number value)
value - a primitive number.public Primitive(java.lang.String value,
boolean saveAsNumeric)
value - a primitive number represented as string.saveAsNumeric - boolean indicating if the data should be saved as
numeric.public Primitive(java.lang.Integer value,
boolean saveAsNumeric)
value - a primitive integer.saveAsNumeric - boolean indicating if the data should be saved as
numeric.public Primitive(java.nio.ByteBuffer value)
value - a byte buffer.public java.lang.String asString()
DynamoDBEntryasString in class DynamoDBEntrypublic java.nio.ByteBuffer asByteBuffer()
DynamoDBEntryasByteBuffer in class DynamoDBEntrypublic java.lang.Number asNumber()
DynamoDBEntryasNumber in class DynamoDBEntrypublic java.lang.Integer asInt()
DynamoDBEntryasInt in class DynamoDBEntrypublic java.lang.Double asDouble()
DynamoDBEntryasDouble in class DynamoDBEntrypublic java.lang.Long asLong()
DynamoDBEntryasLong in class DynamoDBEntrypublic java.lang.Float asFloat()
DynamoDBEntryasFloat in class DynamoDBEntrypublic com.amazonaws.services.dynamodbv2.model.AttributeValue convertToAttributeValue()
DynamoDBEntryDynamoDBEntry to AttributeValueconvertToAttributeValue in class DynamoDBEntryAttributeValue.public Primitive.DynamoDBPrimitiveType getType()
Primitive.DynamoDBPrimitiveType.public java.lang.Object getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Primitive asPrimitive()
DynamoDBEntryPrimitive.asPrimitive in class DynamoDBEntryPrimitive.