org.jikesrvm.util
Class HashMapRVM<K,V>

java.lang.Object
  extended by org.jikesrvm.util.AbstractHashMapRVM<K,V>
      extended by org.jikesrvm.util.HashMapRVM<K,V>

public final class HashMapRVM<K,V>
extends AbstractHashMapRVM<K,V>

Stripped down implementation of HashMap data structure for use by core parts of the JikesRVM runtime. Consider the use of ImmutableEntryHashMapRVM when the use of the HashMap methods is limited.


Nested Class Summary
(package private) static class HashMapRVM.Bucket<K,V>
           
 
Nested classes/interfaces inherited from class org.jikesrvm.util.AbstractHashMapRVM
AbstractHashMapRVM.AbstractBucket<K,V>
 
Field Summary
 
Fields inherited from class org.jikesrvm.util.AbstractHashMapRVM
buckets, DEFAULT_SIZE, numElems
 
Constructor Summary
HashMapRVM()
           
HashMapRVM(int size)
           
 
Method Summary
(package private)  AbstractHashMapRVM.AbstractBucket<K,V> createNewBucket(K key, V value, AbstractHashMapRVM.AbstractBucket<K,V> next)
           
protected  int hashTheKey(K key)
           
protected  boolean same(K k1, K k2)
          Are two keys the same?
 
Methods inherited from class org.jikesrvm.util.AbstractHashMapRVM
get, keyIterator, keys, put, remove, size, valueIterator, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMapRVM

public HashMapRVM()

HashMapRVM

public HashMapRVM(int size)
Method Detail

createNewBucket

AbstractHashMapRVM.AbstractBucket<K,V> createNewBucket(K key,
                                                       V value,
                                                       AbstractHashMapRVM.AbstractBucket<K,V> next)
Specified by:
createNewBucket in class AbstractHashMapRVM<K,V>

same

protected boolean same(K k1,
                       K k2)
Description copied from class: AbstractHashMapRVM
Are two keys the same?

Specified by:
same in class AbstractHashMapRVM<K,V>

hashTheKey

protected int hashTheKey(K key)
Specified by:
hashTheKey in class AbstractHashMapRVM<K,V>