Package org.bson
Class LazyBSONList
-
- org.bson.LazyBSONObject
-
- org.bson.LazyBSONList
-
- All Implemented Interfaces:
,
,
,
BSONObject
- Direct Known Subclasses:
LazyDBList
public class LazyBSONList extends LazyBSONObject implements
ALazyBSONObject
representing a BSON array.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LazyBSONList.LazyBSONListIterator
An iterator over the values in a LazyBsonList.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, element)
boolean
o)
boolean
addAll(int index, c)
boolean
c)
void
clear()
boolean
o)
boolean
collection)
get(int index)
int
o)
iterator()
int
o)
listIterator()
listIterator(int index)
remove(int index)
boolean
o)
boolean
c)
boolean
c)
set(int index, element)
int
size()
subList(int fromIndex, int toIndex)
[]
toArray()
[]
[] a)
-
Methods inherited from class org.bson.LazyBSONObject
containsField, containsKey, entrySet, equals, get, getBSONSize, getBytes, getOffset, hashCode, isEmpty, keySet, pipe, put, putAll, putAll, removeField, toMap
-
-
-
-
Constructor Detail
-
LazyBSONList
public LazyBSONList(byte[] bytes, LazyBSONCallback callback)
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
public LazyBSONList(byte[] bytes, int offset, LazyBSONCallback callback)
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 Detail
-
size
public int size()
- Specified by:
in interface
- Specified by:
in interface
-
contains
public boolean contains( o)
- Specified by:
in interface
- Specified by:
in interface
-
iterator
public iterator()
- Specified by:
in interface
- Specified by:
in interface
- Specified by:
in interface
-
containsAll
public boolean containsAll( collection)
- Specified by:
in interface
- Specified by:
in interface
-
get
public get(int index)
- Specified by:
in interface
-
indexOf
public int indexOf( o)
- Specified by:
in interface
-
lastIndexOf
public int lastIndexOf( o)
- Specified by:
in interface
-
listIterator
public listIterator()
- Specified by:
in interface
-
listIterator
public listIterator(int index)
- Specified by:
in interface
-
add
public boolean add( o)
- Specified by:
in interface
- Specified by:
in interface
-
remove
public boolean remove( o)
- Specified by:
in interface
- Specified by:
in interface
-
addAll
public boolean addAll( c)
- Specified by:
in interface
- Specified by:
in interface
-
addAll
public boolean addAll(int index, c)
- Specified by:
in interface
-
removeAll
public boolean removeAll( c)
- Specified by:
in interface
- Specified by:
in interface
-
retainAll
public boolean retainAll( c)
- Specified by:
in interface
- Specified by:
in interface
-
clear
public void clear()
- Specified by:
in interface
- Specified by:
in interface
-
set
public set(int index, element)
- Specified by:
in interface
-
add
public void add(int index, element)
- Specified by:
in interface
-
remove
public remove(int index)
- Specified by:
in interface
-
subList
public subList(int fromIndex, int toIndex)
- Specified by:
in interface
-
toArray
public [] toArray()
- Specified by:
in interface
- Specified by:
in interface
-
toArray
public [] toArray([] a)
- Specified by:
in interface
- Specified by:
in interface
-
-