| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
jadex.util.collection.WeakSet
A weak set for entries that will be automatically removed when no references to them are existing any more.
| Constructor Summary | |
| WeakSet()Construct a WeakSet based on a HashSet. | |
| Method Summary | |
|  boolean | add(Object obj)Add an element to the set. | 
|  void | clear()Removes all of the elements from this set. | 
|  Object | clone()Returns a shallow copy of this WeakSet instance: the elements themselves are not cloned. | 
|  boolean | contains(Object obj)Returns true if this set contains the specified element. | 
|  boolean | isEmpty()Returns true if this set contains no elements. | 
|  Iterator | iterator()Return an iteration over the elements in the set. | 
|  boolean | remove(Object obj)Removes the given element from this set if it is present. | 
|  int | size()Return the size of the set. | 
|  Object[] | toArray()Convert the set to an array. | 
|  Object[] | toArray(Object[] result)Convert the set to an array. | 
| Methods inherited from class java.util.AbstractSet | 
| equals, hashCode, removeAll | 
| Methods inherited from class java.util.AbstractCollection | 
| addAll, containsAll, retainAll, toString | 
| Methods inherited from class java.lang.Object | 
| getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Set | 
| addAll, containsAll, retainAll | 
| Constructor Detail | 
public WeakSet()
| Method Detail | 
public int size()
size in interface Setpublic Iterator iterator()
iterator in interface Setpublic Object[] toArray()
toArray in interface Setpublic Object[] toArray(Object[] result)
toArray in interface Setpublic boolean add(Object obj)
add in interface Setobj - Element to add to the set.
public boolean isEmpty()
isEmpty in interface Setpublic boolean contains(Object obj)
contains in interface Setobj - Element whose presence in this set is to be tested.
public boolean remove(Object obj)
remove in interface Setobj - Object to be removed from this set, if present.
public void clear()
clear in interface Setpublic Object clone()
| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.