Package com.mongodb

Class BasicDBList

All Implemented Interfaces:
DBObject, Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess, BSONObject

public class BasicDBList extends BasicBSONList implements DBObject
An implementation of List that reflects the way BSON lists work.
See Also:
  • Constructor Details

    • BasicDBList

      public BasicDBList()
  • Method Details

    • isPartialObject

      public boolean isPartialObject()
      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()
      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 Object copy()
      Copies this instance into a new Object.
      Returns:
      a new BasicDBList with the same values as this instance