Save This Page
Home » jdo2-util-2.3-ea-src » org.apache.jdo.util » [javadoc | source]
public class: WeakHashSet [javadoc | source]

All Implemented Interfaces:
    Set, Serializable, Cloneable, Collection

A weak HashSet. An element stored in the WeakHashSet might be garbage collected, if there is no strong reference to this element.
Field Summary
 ReferenceQueue queue    Helps to detect garbage collected values. 
Fields inherited from java.util.HashSet:
Method from org.apache.jdo.util.WeakHashSet Summary:
add,   contains,   iterator,   remove
Methods from java.util.HashSet:
add,   clear,   clone,   contains,   isEmpty,   iterator,   remove,   size
Methods from java.util.AbstractSet:
equals,   hashCode,   removeAll
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.util.WeakHashSet Detail:
 public boolean add(Object o) 
    Adds the specified element to this set if it is not already present.
 public boolean contains(Object o) 
    Returns true if this set contains the specified element.
 public Iterator iterator() 
    Returns an iterator over the elements in this set. The elements are returned in no particular order.
 public boolean remove(Object o) 
    Removes the given element from this set if it is present.