public interface DBCollection
DBCollection
is a universal container to collect
DBObject
.Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBObject obj)
Returns true if this container contains a
DBObject to the specified obj. |
boolean |
contains(java.lang.String objName)
Returns true if this container contains a
DBObject for the specified objName. |
boolean |
isEmpty()
Returns true if this collection contains no elements.
|
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection.
|
int |
size()
Retrieves the amount of
DBObject . |
int size()
DBObject
.DBObject
.boolean isEmpty()
boolean contains(java.lang.String objName)
DBObject
for the specified objName.objName
- The name whose presence in this container is to be tested.DBObject
for the specified objName.boolean contains(DBObject obj)
DBObject
to the specified obj.obj
- whose presence in this container is to be tested.DBObject
.java.util.Iterator iterator()