|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
com.sun.jdo.spi.persistence.support.ejb.cmp.EJBHashSet
public class EJBHashSet
| Constructor Summary | |
|---|---|
EJBHashSet(PersistenceManager pm,
JDOEJB20Helper helper,
java.util.Collection pcs)
Creates new instance of EJBHashSet for this parameters. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Adds the specified element to this set if it is not already present. |
boolean |
addAll(java.util.Collection c)
Adds all of the elements in the specified collection to this collection |
void |
clear()
Removes all of the elements from this set. |
java.lang.Object |
clone()
Returns a shallow copy of this HashSet instance: the elements themselves are not cloned. |
boolean |
contains(java.lang.Object o)
Returns true if this set contains the specified element. |
boolean |
containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
java.util.HashSet |
getSCOHashSet()
Returns set of the persistence-capable instances associated with this Set. |
void |
invalidate()
Marks this Set as invalid and releases all references. |
boolean |
isEmpty()
Returns true if this set contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this set. |
boolean |
remove(java.lang.Object o)
Removes the given element from this set if it is present. |
boolean |
removeAll(java.util.Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
void |
setSCOHashSet(java.util.Collection coll)
Replace the set of the persistence-capable instances associated with this EJBHashSet. |
int |
size()
Returns the number of elements in this set (its cardinality). |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
equals, hashCode, toArray, toArray |
| Constructor Detail |
|---|
public EJBHashSet(PersistenceManager pm,
JDOEJB20Helper helper,
java.util.Collection pcs)
EJBHashSet for this parameters.
pm - the PersistenceManager associated with the calling bean.helper - the JDOEJB20Helper instance.pcs - a Collection of persistence-capable instances.| Method Detail |
|---|
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setadd in class java.util.HashSeto - element to be added to this set.
HashSetpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.SetaddAll in class java.util.AbstractCollectionc - collection whose elements are to be added to this collection.
java.lang.UnsupportedOperationException - if the addAll method is
not supported by this collection.AbstractCollection,
HashSetpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setremove in class java.util.HashSeto - object to be removed from this set, if present.
HashSetpublic boolean removeAll(java.util.Collection c)
Processes each element remove internally not to have call backs into #remove(Object).
removeAll in interface java.util.CollectionremoveAll in interface java.util.SetremoveAll in class java.util.AbstractSetc - elements to be removed from this collection.
java.lang.UnsupportedOperationException - removeAll is not supported
by this collection.HashSet,
AbstractCollectionpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.SetretainAll in class java.util.AbstractCollectionjava.lang.UnsupportedOperationException - if the retainAll method
is not supported by this collection.HashSet,
AbstractCollectionpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setclear in class java.util.HashSetHashSetpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setsize in class java.util.HashSetpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.SetisEmpty in class java.util.HashSetpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Setcontains in class java.util.HashSeto - element whose presence in this set is to be tested.
public boolean containsAll(java.util.Collection c)
This implementation iterates over the specified collection, checking each element returned by the iterator in turn to see if it's contained in this collection. If all elements are so contained true is returned, otherwise false.
containsAll in interface java.util.CollectioncontainsAll in interface java.util.SetcontainsAll in class java.util.AbstractCollectionc - collection to be checked for containment in this collection.
contains(Object)public java.lang.Object clone()
clone in class java.util.HashSetpublic java.util.HashSet getSCOHashSet()
public void setSCOHashSet(java.util.Collection coll)
public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setiterator in class java.util.HashSetConcurrentModificationExceptionpublic void invalidate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||