Package org.bson
Class LazyBSONList
java.lang.Object
org.bson.LazyBSONObject
org.bson.LazyBSONList
- All Implemented Interfaces:
Iterable,Collection,List,BSONObject
A
LazyBSONObject representing a BSON array.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn iterator over the values in a LazyBsonList. -
Constructor Summary
ConstructorsConstructorDescriptionLazyBSONList(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection c) booleanaddAll(Collection c) voidclear()booleanbooleancontainsAll(Collection collection) get(int index) intiterator()intlistIterator(int index) remove(int index) booleanbooleanbooleanintsize()subList(int fromIndex, int toIndex) Object[]toArray()Object[]Methods inherited from class org.bson.LazyBSONObject
containsField, entrySet, equals, get, getBSONSize, getBytes, getOffset, hashCode, isEmpty, keySet, pipe, put, putAll, putAll, removeField, toMapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, isEmpty, replaceAll, sort, spliterator
-
Constructor Details
-
LazyBSONList
Construct an instance with the given raw bytes and offset.- Parameters:
bytes- the raw BSON bytescallback- the callback to use to create nested values
-
LazyBSONList
Construct an instance with the given raw bytes and offset.- Parameters:
bytes- the raw BSON bytesoffset- the offset into the raw bytescallback- the callback to use to create nested values
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
set
-
add
-
remove
-
subList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-