Class ValueList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- com.amazonaws.services.dynamodbv2.document.utils.FluentArrayList<Object>
-
- com.amazonaws.services.dynamodbv2.document.utils.ValueList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Object>
,Collection<Object>
,List<Object>
,RandomAccess
public class ValueList extends FluentArrayList<Object>
Utility value list.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueList
append(Object val)
Appends the given value to this list.ValueList
appendAll(Object... elements)
Fluent method to add the elements to this list.ValueList
appendBinary(byte[] val)
Appends the given value to this list.ValueList
appendBinarySet(byte[]... val)
Appends the given values to this list as a set of byte arrays.ValueList
appendBinarySet(Set<byte[]> val)
Appends the given value to this list.ValueList
appendBoolean(boolean val)
Appends the given value to this list.ValueList
appendInt(int val)
Appends the given value to this list.ValueList
appendList(Object... vals)
Appends the given values to this list as a list.ValueList
appendList(List<?> val)
Appends the given value to this list.ValueList
appendLong(long val)
Appends the given value to this list.ValueList
appendMap(Map<String,?> val)
Appends the given value to this list.ValueList
appendNull()
Appends a null value to this list.ValueList
appendNumber(Number val)
Appends the given value to this list.ValueList
appendNumber(BigDecimal val)
Appends the given value to this list.ValueList
appendNumberSet(Number... val)
Appends the given values to this list as a number set.ValueList
appendNumberSet(BigDecimal... val)
Appends the given value to this list as a set of BigDecimals.ValueList
appendNumberSet(Set<BigDecimal> val)
Appends the given value to this list.ValueList
appendString(String val)
Appends the given value to this list.ValueList
appendStringSet(String... val)
Appends the given values to this list as a string set.ValueList
appendStringSet(Set<String> val)
Appends the given value to this list.-
Methods inherited from class com.amazonaws.services.dynamodbv2.document.utils.FluentArrayList
appendAll, delete
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
ValueList
public ValueList(int initialCapacity)
-
ValueList
public ValueList(Object... elements)
-
ValueList
public ValueList()
-
ValueList
public ValueList(Collection<?> c)
-
-
Method Detail
-
appendAll
public ValueList appendAll(Object... elements)
Description copied from class:FluentArrayList
Fluent method to add the elements to this list.- Overrides:
appendAll
in classFluentArrayList<Object>
-
appendNumber
public ValueList appendNumber(BigDecimal val)
Appends the given value to this list.
-
appendInt
public ValueList appendInt(int val)
Appends the given value to this list.
-
appendLong
public ValueList appendLong(long val)
Appends the given value to this list.
-
appendBinary
public ValueList appendBinary(byte[] val)
Appends the given value to this list.
-
appendStringSet
public ValueList appendStringSet(Set<String> val)
Appends the given value to this list.
-
appendStringSet
public ValueList appendStringSet(String... val)
Appends the given values to this list as a string set.
-
appendNumberSet
public ValueList appendNumberSet(Set<BigDecimal> val)
Appends the given value to this list.
-
appendNumberSet
public ValueList appendNumberSet(BigDecimal... val)
Appends the given value to this list as a set of BigDecimals.
-
appendNumberSet
public ValueList appendNumberSet(Number... val)
Appends the given values to this list as a number set.
-
appendBinarySet
public ValueList appendBinarySet(Set<byte[]> val)
Appends the given value to this list.
-
appendBinarySet
public ValueList appendBinarySet(byte[]... val)
Appends the given values to this list as a set of byte arrays.
-
appendList
public ValueList appendList(Object... vals)
Appends the given values to this list as a list.
-
appendBoolean
public ValueList appendBoolean(boolean val)
Appends the given value to this list.
-
appendNull
public ValueList appendNull()
Appends a null value to this list.
-
append
public ValueList append(Object val)
Appends the given value to this list. A value can be a- Number
- String
- binary (ie byte array or byte buffer)
- boolean
- null
- list (of any of the types on this list)
- map (append string key to value of any of the types on this list)
- set (of any of the types on this list)
- Overrides:
append
in classFluentArrayList<Object>
-
-