org.bson
Class LazyBSONList

java.lang.Object
  extended by org.bson.LazyBSONObject
      extended by org.bson.LazyBSONList
All Implemented Interfaces:
Iterable, Collection, List, BSONObject
Direct Known Subclasses:
LazyDBList

public class LazyBSONList
extends LazyBSONObject
implements List


Nested Class Summary
 class LazyBSONList.LazyBSONListIterator
           
 
Nested classes/interfaces inherited from class org.bson.LazyBSONObject
LazyBSONObject.LazyBSONKeySet
 
Field Summary
 
Fields inherited from class org.bson.LazyBSONObject
_callback, _doc_start_offset, _input
 
Constructor Summary
LazyBSONList(BSONByteBuffer buffer, int offset, LazyBSONCallback callback)
           
LazyBSONList(BSONByteBuffer buffer, LazyBSONCallback callback)
           
LazyBSONList(byte[] data, int offset, LazyBSONCallback callback)
           
LazyBSONList(byte[] data, LazyBSONCallback callback)
           
 
Method Summary
 void add(int arg0, Object arg1)
           
 boolean add(Object arg0)
           
 boolean addAll(Collection arg0)
           
 boolean addAll(int arg0, Collection arg1)
           
 void clear()
           
 boolean contains(Object arg0)
           
 boolean containsAll(Collection arg0)
           
 Object get(int pos)
           
 int indexOf(Object arg0)
           
 Iterator iterator()
           
 int lastIndexOf(Object arg0)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int arg0)
           
 Object remove(int arg0)
           
 boolean remove(Object arg0)
           
 boolean removeAll(Collection arg0)
           
 boolean retainAll(Collection arg0)
           
 Object set(int arg0, Object arg1)
           
 int size()
           
 List subList(int arg0, int arg1)
           
 Object[] toArray()
           
 Object[] toArray(Object[] arg0)
           
 
Methods inherited from class org.bson.LazyBSONObject
containsField, containsKey, entrySet, equals, get, getBSONSize, getElementBSONSize, getElementType, getElementValue, hashCode, isElementEmpty, isEmpty, keySet, pipe, put, putAll, putAll, removeField, sizeCString, toMap, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode, isEmpty
 

Constructor Detail

LazyBSONList

public LazyBSONList(byte[] data,
                    LazyBSONCallback callback)

LazyBSONList

public LazyBSONList(byte[] data,
                    int offset,
                    LazyBSONCallback callback)

LazyBSONList

public LazyBSONList(BSONByteBuffer buffer,
                    LazyBSONCallback callback)

LazyBSONList

public LazyBSONList(BSONByteBuffer buffer,
                    int offset,
                    LazyBSONCallback callback)
Method Detail

contains

public boolean contains(Object arg0)
Specified by:
contains in interface Collection
Specified by:
contains in interface List

containsAll

public boolean containsAll(Collection arg0)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface List

get

public Object get(int pos)
Specified by:
get in interface List

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List

indexOf

public int indexOf(Object arg0)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object arg0)
Specified by:
lastIndexOf in interface List

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List

listIterator

public ListIterator listIterator(int arg0)
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

add

public boolean add(Object arg0)
Specified by:
add in interface Collection
Specified by:
add in interface List

add

public void add(int arg0,
                Object arg1)
Specified by:
add in interface List

addAll

public boolean addAll(Collection arg0)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List

addAll

public boolean addAll(int arg0,
                      Collection arg1)
Specified by:
addAll in interface List

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List

remove

public boolean remove(Object arg0)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

remove

public Object remove(int arg0)
Specified by:
remove in interface List

removeAll

public boolean removeAll(Collection arg0)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface List

retainAll

public boolean retainAll(Collection arg0)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface List

set

public Object set(int arg0,
                  Object arg1)
Specified by:
set in interface List

subList

public List subList(int arg0,
                    int arg1)
Specified by:
subList in interface List

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List

toArray

public Object[] toArray(Object[] arg0)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List