org.jikesrvm.util
Class ImmutableEntryHashMapRVM<K,V>
java.lang.Object
org.jikesrvm.util.AbstractHashMapRVM<K,V>
org.jikesrvm.util.ImmutableEntryHashMapRVM<K,V>
public final class ImmutableEntryHashMapRVM<K,V>
- extends AbstractHashMapRVM<K,V>
A hash map with entirely immutable buckets. It doesn't correctly support
remove, and its values cannot be mutated by a put with the same key - use
with care.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableEntryHashMapRVM
public ImmutableEntryHashMapRVM()
ImmutableEntryHashMapRVM
public ImmutableEntryHashMapRVM(int size)
createNewBucket
AbstractHashMapRVM.AbstractBucket<K,V> createNewBucket(K key,
V value,
AbstractHashMapRVM.AbstractBucket<K,V> next)
- Specified by:
createNewBucket
in class AbstractHashMapRVM<K,V>
remove
public V remove(K key)
- Overrides:
remove
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>