Package com.mongodb

Class BasicDBList

  • All Implemented Interfaces:
    DBObject, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, java.util.RandomAccess, BSONObject

    @Deprecated(since="2021-05-27")
    public class BasicDBList
    extends BasicBSONList
    implements DBObject
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An implementation of List that reflects the way BSON lists work.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicDBList()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Object copy()
      Deprecated.
      Copies this instance into a new Object.
      boolean isPartialObject()
      Deprecated.
      Whether DBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
      void markAsPartialObject()
      Deprecated.
      If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

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

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • BasicDBList

        public BasicDBList()
        Deprecated.
    • Method Detail

      • isPartialObject

        public boolean isPartialObject()
        Deprecated.
        Description copied from interface: DBObject
        Whether DBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
        Specified by:
        isPartialObject in interface DBObject
        Returns:
        true if this has been marked as a partial object
      • markAsPartialObject

        public void markAsPartialObject()
        Deprecated.
        Description copied from interface: DBObject
        If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
        Specified by:
        markAsPartialObject in interface DBObject
      • copy

        public java.lang.Object copy()
        Deprecated.
        Copies this instance into a new Object.
        Returns:
        a new BasicDBList with the same values as this instance