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
Modifier and TypeClassDescriptionclass
An iterator over the values in a LazyBsonList. -
Constructor Summary
ConstructorDescriptionLazyBSONList
(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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection c) boolean
addAll
(Collection c) void
clear()
boolean
boolean
containsAll
(Collection collection) get
(int index) int
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
boolean
int
size()
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, toMap
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
size
in interfaceCollection
- Specified by:
size
in interfaceList
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceList
-
iterator
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceList
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList
-
listIterator
- Specified by:
listIterator
in interfaceList
-
listIterator
- Specified by:
listIterator
in interfaceList
-
add
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceList
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
-
addAll
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
-
retainAll
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceList
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
-
set
-
add
-
remove
-
subList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-