Package org.bson

Class LazyBSONList

  • All Implemented Interfaces:
    , , , BSONObject
    Direct Known Subclasses:
    LazyDBList

    public class LazyBSONList
    extends LazyBSONObject
    implements 
    A LazyBSONObject representing a BSON array.
    • Constructor Detail

      • LazyBSONList

        public LazyBSONList​(byte[] bytes,
                            LazyBSONCallback callback)
        Construct an instance with the given raw bytes and offset.
        Parameters:
        bytes - the raw BSON bytes
        callback - 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 bytes
        offset - the offset into the raw bytes
        callback - 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