Package org.bson

Class LazyBSONList

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, java.util.List, BSONObject
    Direct Known Subclasses:
    LazyDBList

    @Deprecated(since="2022-10-31")
    public class LazyBSONList
    extends LazyBSONObject
    implements java.util.List
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A LazyBSONObject representing a BSON array.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  LazyBSONList.LazyBSONListIterator
      Deprecated.
      Usage of this API is not supported in AEM as a Cloud Service.
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyBSONList​(byte[] bytes, int offset, LazyBSONCallback callback)
      Deprecated.
      Construct an instance with the given raw bytes and offset.
      LazyBSONList​(byte[] bytes, LazyBSONCallback callback)
      Deprecated.
      Construct an instance with the given raw bytes and offset.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(int index, java.lang.Object element)
      Deprecated.
       
      boolean add​(java.lang.Object o)
      Deprecated.
       
      boolean addAll​(int index, java.util.Collection c)
      Deprecated.
       
      boolean addAll​(java.util.Collection c)
      Deprecated.
       
      void clear()
      Deprecated.
       
      boolean contains​(java.lang.Object o)
      Deprecated.
       
      boolean containsAll​(java.util.Collection collection)
      Deprecated.
       
      java.lang.Object get​(int index)
      Deprecated.
       
      int indexOf​(java.lang.Object o)
      Deprecated.
       
      java.util.Iterator iterator()
      Deprecated.
       
      int lastIndexOf​(java.lang.Object o)
      Deprecated.
       
      java.util.ListIterator listIterator()
      Deprecated.
       
      java.util.ListIterator listIterator​(int index)
      Deprecated.
       
      java.lang.Object remove​(int index)
      Deprecated.
       
      boolean remove​(java.lang.Object o)
      Deprecated.
       
      boolean removeAll​(java.util.Collection c)
      Deprecated.
       
      boolean retainAll​(java.util.Collection c)
      Deprecated.
       
      java.lang.Object set​(int index, java.lang.Object element)
      Deprecated.
       
      int size()
      Deprecated.
       
      java.util.List subList​(int fromIndex, int toIndex)
      Deprecated.
       
      java.lang.Object[] toArray()
      Deprecated.
       
      java.lang.Object[] toArray​(java.lang.Object[] a)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        equals, hashCode, isEmpty, replaceAll, sort, spliterator
    • Constructor Detail

      • LazyBSONList

        public LazyBSONList​(byte[] bytes,
                            LazyBSONCallback callback)
        Deprecated.
        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)
        Deprecated.
        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()
        Deprecated.
        Specified by:
        size in interface java.util.Collection
        Specified by:
        size in interface java.util.List
      • contains

        public boolean contains​(java.lang.Object o)
        Deprecated.
        Specified by:
        contains in interface java.util.Collection
        Specified by:
        contains in interface java.util.List
      • iterator

        public java.util.Iterator iterator()
        Deprecated.
        Specified by:
        iterator in interface java.util.Collection
        Specified by:
        iterator in interface java.lang.Iterable
        Specified by:
        iterator in interface java.util.List
      • containsAll

        public boolean containsAll​(java.util.Collection collection)
        Deprecated.
        Specified by:
        containsAll in interface java.util.Collection
        Specified by:
        containsAll in interface java.util.List
      • get

        public java.lang.Object get​(int index)
        Deprecated.
        Specified by:
        get in interface java.util.List
      • indexOf

        public int indexOf​(java.lang.Object o)
        Deprecated.
        Specified by:
        indexOf in interface java.util.List
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Deprecated.
        Specified by:
        lastIndexOf in interface java.util.List
      • listIterator

        public java.util.ListIterator listIterator()
        Deprecated.
        Specified by:
        listIterator in interface java.util.List
      • listIterator

        public java.util.ListIterator listIterator​(int index)
        Deprecated.
        Specified by:
        listIterator in interface java.util.List
      • add

        public boolean add​(java.lang.Object o)
        Deprecated.
        Specified by:
        add in interface java.util.Collection
        Specified by:
        add in interface java.util.List
      • remove

        public boolean remove​(java.lang.Object o)
        Deprecated.
        Specified by:
        remove in interface java.util.Collection
        Specified by:
        remove in interface java.util.List
      • addAll

        public boolean addAll​(java.util.Collection c)
        Deprecated.
        Specified by:
        addAll in interface java.util.Collection
        Specified by:
        addAll in interface java.util.List
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection c)
        Deprecated.
        Specified by:
        addAll in interface java.util.List
      • removeAll

        public boolean removeAll​(java.util.Collection c)
        Deprecated.
        Specified by:
        removeAll in interface java.util.Collection
        Specified by:
        removeAll in interface java.util.List
      • retainAll

        public boolean retainAll​(java.util.Collection c)
        Deprecated.
        Specified by:
        retainAll in interface java.util.Collection
        Specified by:
        retainAll in interface java.util.List
      • clear

        public void clear()
        Deprecated.
        Specified by:
        clear in interface java.util.Collection
        Specified by:
        clear in interface java.util.List
      • set

        public java.lang.Object set​(int index,
                                    java.lang.Object element)
        Deprecated.
        Specified by:
        set in interface java.util.List
      • add

        public void add​(int index,
                        java.lang.Object element)
        Deprecated.
        Specified by:
        add in interface java.util.List
      • remove

        public java.lang.Object remove​(int index)
        Deprecated.
        Specified by:
        remove in interface java.util.List
      • subList

        public java.util.List subList​(int fromIndex,
                                      int toIndex)
        Deprecated.
        Specified by:
        subList in interface java.util.List
      • toArray

        public java.lang.Object[] toArray()
        Deprecated.
        Specified by:
        toArray in interface java.util.Collection
        Specified by:
        toArray in interface java.util.List
      • toArray

        public java.lang.Object[] toArray​(java.lang.Object[] a)
        Deprecated.
        Specified by:
        toArray in interface java.util.Collection
        Specified by:
        toArray in interface java.util.List