|
||||||||||
| 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,
Collection pcs)
Creates new instance of EJBHashSet for this parameters. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
Adds the specified element to this set if it is not already present. |
boolean |
addAll(Collection c)
Adds all of the elements in the specified collection to this collection |
void |
clear()
Removes all of the elements from this set. |
Object |
clone()
Returns a shallow copy of this HashSet instance: the elements themselves are not cloned. |
boolean |
contains(Object o)
Returns true if this set contains the specified element. |
boolean |
containsAll(Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
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. |
Iterator |
iterator()
Returns an iterator over the elements in this set. |
boolean |
remove(Object o)
Removes the given element from this set if it is present. |
boolean |
removeAll(Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
void |
setSCOHashSet(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,
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(Object o)
add in interface Collectionadd in interface Setadd in class HashSeto - element to be added to this set.
HashSetpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionc - collection whose elements are to be added to this collection.
UnsupportedOperationException - if the addAll method is
not supported by this collection.AbstractCollection,
HashSetpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class HashSeto - object to be removed from this set, if present.
HashSetpublic boolean removeAll(Collection c)
Processes each element remove internally not to have call backs into #remove(Object).
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetc - elements to be removed from this collection.
UnsupportedOperationException - removeAll is not supported
by this collection.HashSet,
AbstractCollectionpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionUnsupportedOperationException - if the retainAll method
is not supported by this collection.HashSet,
AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class HashSetHashSetpublic int size()
size in interface Collectionsize in interface Setsize in class HashSetpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class HashSetpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class HashSeto - element whose presence in this set is to be tested.
public boolean containsAll(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 CollectioncontainsAll in interface SetcontainsAll in class AbstractCollectionc - collection to be checked for containment in this collection.
contains(Object)public Object clone()
clone in class HashSetpublic HashSet getSCOHashSet()
public void setSCOHashSet(Collection coll)
public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class HashSetConcurrentModificationExceptionpublic void invalidate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||