| |
|
| java.util.ArrayList org.ozoneDB.odmg.OzoneODMGDBag
OzoneODMGDBag | public class OzoneODMGDBag extends ArrayList implements DBag(Code) | | author: SMB version: $Revision: 1.1 $Date: 2002/05/08 15:03:21 $ |
Method Summary | |
public DBag | difference(DBag otherBag) A new 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.
Parameters: otherBag - The other bag to use in creating the difference. | public boolean | existsElement(String predicate) | public DBag | intersection(DBag otherBag) A new 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.
Parameters: otherBag - The other bag to use in creating the intersection. | public int | occurrences(Object obj) This method returns the number of occurrences of the object obj
in the DBag collection.
Parameters: obj - The value that may have elements in the collection. | public DCollection | query(String predicate) | public java.util.Iterator | select(String predicate) | public Object | selectElement(String predicate) | public DBag | union(DBag otherBag) A new 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.
Parameters: otherBag - The other bag to use in the union operation. |
OzoneODMGDBag | public OzoneODMGDBag()(Code) | | |
difference | public DBag difference(DBag otherBag)(Code) | | A new 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.
Parameters: otherBag - The other bag to use in creating the difference. A DBag instance that contains the elements of this objectminus the elements in otherBag . |
intersection | public DBag intersection(DBag otherBag)(Code) | | A new 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.
Parameters: otherBag - The other bag to use in creating the intersection. A DBag instance that contains the intersection of thisobject and otherBag . |
occurrences | public int occurrences(Object obj)(Code) | | This method returns the number of occurrences of the object obj
in the DBag collection.
Parameters: obj - The value that may have elements in the collection. The number of occurrences of obj in this collection. |
union | public DBag union(DBag otherBag)(Code) | | A new 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.
Parameters: otherBag - The other bag to use in the union operation. A DBag instance that contains the union of this objectand otherBag . |
|
|
|