org.jruby.util.collections
Class WeakHashSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
org.jruby.util.collections.WeakHashSet
- All Implemented Interfaces:
- java.util.Collection, java.util.Set
- public class WeakHashSet
- extends java.util.AbstractSet
A simple set that uses weak references to ensure that its elements can be garbage collected.
See WeakHashMap.
- Author:
- Robert Egglestone
Methods inherited from class java.util.AbstractSet |
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, toArray, toArray |
WeakHashSet
public WeakHashSet()
add
public boolean add(java.lang.Object o)
iterator
public java.util.Iterator iterator()
size
public int size()
isEmpty
public boolean isEmpty()
contains
public boolean contains(java.lang.Object o)
remove
public boolean remove(java.lang.Object o)
removeAll
public boolean removeAll(java.util.Collection collection)
retainAll
public boolean retainAll(java.util.Collection collection)
clear
public void clear()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.