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 ValueListappend(Object val)Appends the given value to this list.ValueListappendAll(Object... elements)Fluent method to add the elements to this list.ValueListappendBinary(byte[] val)Appends the given value to this list.ValueListappendBinarySet(byte[]... val)Appends the given values to this list as a set of byte arrays.ValueListappendBinarySet(Set<byte[]> val)Appends the given value to this list.ValueListappendBoolean(boolean val)Appends the given value to this list.ValueListappendInt(int val)Appends the given value to this list.ValueListappendList(Object... vals)Appends the given values to this list as a list.ValueListappendList(List<?> val)Appends the given value to this list.ValueListappendLong(long val)Appends the given value to this list.ValueListappendMap(Map<String,?> val)Appends the given value to this list.ValueListappendNull()Appends a null value to this list.ValueListappendNumber(Number val)Appends the given value to this list.ValueListappendNumber(BigDecimal val)Appends the given value to this list.ValueListappendNumberSet(Number... val)Appends the given values to this list as a number set.ValueListappendNumberSet(BigDecimal... val)Appends the given value to this list as a set of BigDecimals.ValueListappendNumberSet(Set<BigDecimal> val)Appends the given value to this list.ValueListappendString(String val)Appends the given value to this list.ValueListappendStringSet(String... val)Appends the given values to this list as a string set.ValueListappendStringSet(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:FluentArrayListFluent method to add the elements to this list.- Overrides:
appendAllin 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:
appendin classFluentArrayList<Object>
-
-