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 . |
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, toString
public 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 AttributeValue convertToAttributeValue()
DynamoDBEntry
DynamoDBEntry
to AttributeValue
convertToAttributeValue
in class DynamoDBEntry
AttributeValue
.public java.util.List<Primitive> getEntries()
public Primitive.DynamoDBPrimitiveType getType()
Primitive.DynamoDBPrimitiveType
public PrimitiveList asPrimitiveList()
DynamoDBEntry
PrimitiveList
.asPrimitiveList
in class DynamoDBEntry
PrimitiveList
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.