public class PrimitiveList extends DynamoDBEntry
| Constructor and Description |
|---|
PrimitiveList()
Constructor.
|
PrimitiveList(Primitive.DynamoDBPrimitiveType type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.nio.ByteBuffer value)
Adds a ByteBuffer to the primitive list.
|
void |
add(java.lang.Number value)
Adds a Number to the primitive List.
|
void |
add(Primitive value)
Adds a primitive value.
|
void |
add(java.lang.String value)
Adds an String to the primitive list.
|
<T> void |
addAll(java.util.Set<T> set)
Adds a set of typed items.
|
PrimitiveList |
asPrimitiveList()
Explicitly convert DynamoDBEntry to
PrimitiveList. |
com.amazonaws.services.dynamodbv2.model.AttributeValue |
convertToAttributeValue()
Converts a
DynamoDBEntry to AttributeValue |
boolean |
equals(java.lang.Object obj) |
Primitive |
get(java.lang.Integer index)
Gets the primitive represented by an Index.
|
java.util.List<Primitive> |
getEntries()
Returns a list of primitives
|
Primitive.DynamoDBPrimitiveType |
getType()
Type of the Primitive List.
|
int |
hashCode() |
asBoolean, asByteBuffer, asDocument, asDouble, asDynamoDBList, asFloat, asInt, asLong, asNumber, asPrimitive, asString, convertToAttributeUpdateValue, toStringpublic PrimitiveList()
public PrimitiveList(Primitive.DynamoDBPrimitiveType type)
type - the type of Primitive List.public void add(java.lang.String value)
value - the string value to be added.public void add(java.lang.Number value)
value - the number to be added.public void add(java.nio.ByteBuffer value)
value - the byte buffer to be added.public <T> void addAll(java.util.Set<T> set)
T - the type of set.set - the set to be added.public void add(Primitive value)
value - the primitive value to be added to list.public Primitive get(java.lang.Integer index)
index - the index.public com.amazonaws.services.dynamodbv2.model.AttributeValue convertToAttributeValue()
DynamoDBEntryDynamoDBEntry to AttributeValueconvertToAttributeValue in class DynamoDBEntryAttributeValue.public java.util.List<Primitive> getEntries()
public Primitive.DynamoDBPrimitiveType getType()
Primitive.DynamoDBPrimitiveTypepublic PrimitiveList asPrimitiveList()
DynamoDBEntryPrimitiveList.asPrimitiveList in class DynamoDBEntryPrimitiveList.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object