org.jikesrvm.util
Class ImmutableEntryHashSetRVM<T>

java.lang.Object
  extended by org.jikesrvm.util.AbstractHashSetRVM<T>
      extended by org.jikesrvm.util.ImmutableEntryHashSetRVM<T>
All Implemented Interfaces:
Iterable<T>

public final class ImmutableEntryHashSetRVM<T>
extends AbstractHashSetRVM<T>

A hash set with entirely immutable buckets. It doesn't correctly support remove, so use with care.


Nested Class Summary
(package private) static class ImmutableEntryHashSetRVM.Bucket<T>
           
 
Nested classes/interfaces inherited from class org.jikesrvm.util.AbstractHashSetRVM
AbstractHashSetRVM.AbstractBucket<T>, AbstractHashSetRVM.SetIterator
 
Field Summary
 
Fields inherited from class org.jikesrvm.util.AbstractHashSetRVM
buckets, DEFAULT_SIZE, numElems
 
Constructor Summary
ImmutableEntryHashSetRVM()
           
ImmutableEntryHashSetRVM(int size)
           
 
Method Summary
(package private)  AbstractHashSetRVM.AbstractBucket<T> createNewBucket(T key, AbstractHashSetRVM.AbstractBucket<T> next)
           
 void remove(T key)
           
 
Methods inherited from class org.jikesrvm.util.AbstractHashSetRVM
add, addAll, contains, get, iterator, newBucketArray, removeAll, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableEntryHashSetRVM

public ImmutableEntryHashSetRVM()

ImmutableEntryHashSetRVM

public ImmutableEntryHashSetRVM(int size)
Method Detail

createNewBucket

AbstractHashSetRVM.AbstractBucket<T> createNewBucket(T key,
                                                     AbstractHashSetRVM.AbstractBucket<T> next)
Specified by:
createNewBucket in class AbstractHashSetRVM<T>

remove

public void remove(T key)
Overrides:
remove in class AbstractHashSetRVM<T>