abstract class AbstractHashSetRVM<T> extends Object implements Iterable<T>
| Modifier and Type | Class and Description | 
|---|---|
| (package private) static class  | AbstractHashSetRVM.AbstractBucket<T> | 
| (package private) class  | AbstractHashSetRVM.SetIteratorIterator | 
| Modifier and Type | Field and Description | 
|---|---|
| protected AbstractHashSetRVM.AbstractBucket<T>[] | buckets | 
| protected static int | DEFAULT_SIZE | 
| private static float | LOAD | 
| protected int | numElems | 
| Constructor and Description | 
|---|
| AbstractHashSetRVM(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(T key) | 
| void | addAll(AbstractHashSetRVM<T> c) | 
| private int | bucketIndex(T key,
           int divisor) | 
| boolean | contains(T key) | 
| (package private) abstract AbstractHashSetRVM.AbstractBucket<T> | createNewBucket(T key,
               AbstractHashSetRVM.AbstractBucket<T> next) | 
| T | get(T key) | 
| private void | growMap() | 
| private boolean | growMapAllowed()Advise against growing the buckets if they are immortal, as it will lead
 to multiple sets of buckets that will be scanned | 
| Iterator<T> | iterator() | 
| protected AbstractHashSetRVM.AbstractBucket<T>[] | newBucketArray(int size) | 
| void | remove(T key) | 
| void | removeAll() | 
| int | size() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected static final int DEFAULT_SIZE
private static final float LOAD
protected AbstractHashSetRVM.AbstractBucket<T>[] buckets
protected int numElems
AbstractHashSetRVM(int size)
abstract AbstractHashSetRVM.AbstractBucket<T> createNewBucket(T key, AbstractHashSetRVM.AbstractBucket<T> next)
protected AbstractHashSetRVM.AbstractBucket<T>[] newBucketArray(int size)
public int size()
private boolean growMapAllowed()
public void addAll(AbstractHashSetRVM<T> c)
private void growMap()
public void removeAll()
private int bucketIndex(T key, int divisor)