|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--ojb.server.collections.DListImpl | +--ojb.server.collections.DBagImpl
Insert the type's description here. Creation date: (25.02.2001 12:53:12)
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
DBagImpl()
DBagImpl constructor comment. |
|
DBagImpl(int theId,
int theSize)
DBagImpl constructor comment. |
Method Summary | |
DBag |
difference(DBag otherBag)
A new DBag instance is created that contains the difference of
this object and the DBag instance referenced by otherBag .
|
DBag |
intersection(DBag otherBag)
A new DBag instance is created that contains the intersection of
this object and the DBag referenced by otherBag .
|
int |
occurrences(java.lang.Object obj)
This method returns the number of occurrences of the object obj
in the DBag collection. |
DBag |
union(DBag otherBag)
A new DBag instance is created that is the union of this object
and otherBag .
|
Methods inherited from class ojb.server.collections.DListImpl |
add, concat, existsElement, get, getElements, getId, iterator, listIterator, listIterator, ojbAdd, ojbAddAll, ojbIterator, query, resize, select, selectElement, size |
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.odmg.DCollection |
existsElement, query, select, selectElement |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.List |
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Constructor Detail |
public DBagImpl()
public DBagImpl(int theId, int theSize)
theId
- inttheSize
- intMethod Detail |
public DBag difference(DBag otherBag)
DBag
instance is created that contains the difference of
this object and the DBag
instance referenced by otherBag
.
This method is similar to the removeAll
method in Collection
,
except that this method creates a new collection and removeAll
modifies the object to contain the result.difference
in interface DBag
otherBag
- The other bag to use in creating the difference.DBag
instance that contains the elements of this object
minus the elements in otherBag
.public DBag intersection(DBag otherBag)
DBag
instance is created that contains the intersection of
this object and the DBag
referenced by otherBag
.
This method is similar to the retainAll
method in Collection
,
except that this method creates a new collection and retainAll
modifies the object to contain the result.intersection
in interface DBag
otherBag
- The other bag to use in creating the intersection.DBag
instance that contains the intersection of this
object and otherBag
.public int occurrences(java.lang.Object obj)
obj
in the DBag
collection.occurrences
in interface DBag
obj
- The value that may have elements in the collection.obj
in this collection.public DBag union(DBag otherBag)
DBag
instance is created that is the union of this object
and otherBag
.
This method is similar to the addAll
method in Collection
,
except that this method creates a new collection and addAll
modifies the object to contain the result.union
in interface DBag
otherBag
- The other bag to use in the union operation.DBag
instance that contains the union of this object
and otherBag
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |