Iterable<E>
, Collection<E>
, List
, BSONObject
LazyDBList
public class LazyBSONList extends LazyBSONObject implements List
LazyBSONObject
representing a BSON array.Modifier and Type | Class | Description |
---|---|---|
class |
LazyBSONList.LazyBSONListIterator |
An iterator over the values in a LazyBsonList.
|
Constructor | Description |
---|---|
LazyBSONList(byte[] bytes,
int offset,
LazyBSONCallback callback) |
Construct an instance with the given raw bytes and offset.
|
LazyBSONList(byte[] bytes,
LazyBSONCallback callback) |
Construct an instance with the given raw bytes and offset.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
Object element) |
|
boolean |
add(Object o) |
|
boolean |
addAll(int index,
Collection c) |
|
boolean |
addAll(Collection c) |
|
void |
clear() |
|
boolean |
contains(Object o) |
|
boolean |
containsAll(Collection collection) |
|
Object |
get(int index) |
|
int |
indexOf(Object o) |
|
Iterator |
iterator() |
|
int |
lastIndexOf(Object o) |
|
ListIterator |
listIterator() |
|
ListIterator |
listIterator(int index) |
|
Object |
remove(int index) |
|
boolean |
remove(Object o) |
|
boolean |
removeAll(Collection c) |
|
boolean |
retainAll(Collection c) |
|
Object |
set(int index,
Object element) |
|
int |
size() |
|
List |
subList(int fromIndex,
int toIndex) |
|
Object[] |
toArray() |
|
Object[] |
toArray(Object[] a) |
parallelStream, removeIf, stream
containsField, containsKey, entrySet, equals, get, getBSONSize, getBytes, getOffset, hashCode, isEmpty, keySet, pipe, put, putAll, putAll, removeField, toMap
public LazyBSONList(byte[] bytes, LazyBSONCallback callback)
bytes
- the raw BSON bytescallback
- the callback to use to create nested valuespublic LazyBSONList(byte[] bytes, int offset, LazyBSONCallback callback)
bytes
- the raw BSON bytesoffset
- the offset into the raw bytescallback
- the callback to use to create nested valuespublic int size()
public boolean contains(Object o)
public Iterator iterator()
public boolean containsAll(Collection collection)
containsAll
in interface Collection<E extends Object>
containsAll
in interface List
public int lastIndexOf(Object o)
lastIndexOf
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public boolean add(Object o)
public boolean remove(Object o)
public boolean addAll(Collection c)
public boolean addAll(int index, Collection c)
public boolean removeAll(Collection c)
public boolean retainAll(Collection c)
public void clear()
public Object[] toArray()