org.jruby.util.collections
Class WeakHashSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byorg.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

Constructor Summary
WeakHashSet()
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection collection)
           
 boolean retainAll(java.util.Collection collection)
           
 int size()
           
 
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
 

Constructor Detail

WeakHashSet

public WeakHashSet()
Method Detail

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.