Modifier and Type | Field and Description |
---|---|
private java.util.List<T> |
wrappedArray |
Constructor and Description |
---|
BsonArrayWrapper(java.util.List<T> wrappedArray)
Construct a new instance with the given array and encoder for the document.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(BsonValue bsonValue) |
void |
add(int index,
BsonValue element) |
boolean |
addAll(java.util.Collection<? extends BsonValue> c) |
boolean |
addAll(int index,
java.util.Collection<? extends BsonValue> c) |
void |
clear() |
BsonArray |
clone() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
BsonValue |
get(int index) |
java.util.List<BsonValue> |
getValues()
Gets the values in this array as a list of
BsonValue objects. |
java.util.List<T> |
getWrappedArray()
Get the wrapped array.
|
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<BsonValue> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<BsonValue> |
listIterator() |
java.util.ListIterator<BsonValue> |
listIterator(int index) |
BsonValue |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
BsonValue |
set(int index,
BsonValue element) |
int |
size() |
java.util.List<BsonValue> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
getBsonType, parse
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamp
private final java.util.List<T> wrappedArray
public BsonArrayWrapper(java.util.List<T> wrappedArray)
wrappedArray
- the wrapped arraypublic java.util.List<T> getWrappedArray()
public java.util.List<BsonValue> getValues()
BsonArray
BsonValue
objects.public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<BsonValue> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(BsonValue bsonValue)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<BsonValue>
containsAll
in interface java.util.List<BsonValue>
containsAll
in class BsonArray
public boolean addAll(java.util.Collection<? extends BsonValue> c)
public boolean addAll(int index, java.util.Collection<? extends BsonValue> c)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public BsonValue get(int index)
public void add(int index, BsonValue element)
public BsonValue remove(int index)
public int indexOf(java.lang.Object o)
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<BsonValue>
lastIndexOf
in class BsonArray
public java.util.ListIterator<BsonValue> listIterator()
listIterator
in interface java.util.List<BsonValue>
listIterator
in class BsonArray
public java.util.ListIterator<BsonValue> listIterator(int index)
listIterator
in interface java.util.List<BsonValue>
listIterator
in class BsonArray
public java.util.List<BsonValue> subList(int fromIndex, int toIndex)
public boolean equals(java.lang.Object o)
public int hashCode()