K
- the key type of the objectsV
- the value type of the objectspublic class OpenFixedSizeMap<K,V>
extends java.util.AbstractMap<K,V>
implements java.util.Map<K,V>, java.lang.Cloneable, java.io.Serializable
tableSize
key/value entries. Otherwise a // *
java.lang.IllegalStateException
exception will be thrown. The entrySet()
method is not implemented and
throws a java.lang.IllegalStateException
exception.
This class is not synchronized.
Constructor and Description |
---|
OpenFixedSizeMap(int tableSize)
Open addressed map from K to V.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Throws exception
IllegalStateException("entrySet not implemented!") |
boolean |
equals(java.lang.Object obj) |
V |
get(java.lang.Object key) |
int |
hashCode() |
V |
put(K key,
V value) |
int |
size() |
clear, containsKey, containsValue, isEmpty, keySet, putAll, remove, toString, values
public OpenFixedSizeMap(int tableSize)
tableSize
key/value entries. Otherwise a
java.lang.IllegalStateException
exception will be thrown. The entrySet()
method is not implemented
and throws a java.lang.IllegalStateException
exception.tableSize
- public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
IllegalStateException("entrySet not implemented!")
.public boolean equals(java.lang.Object obj)
public V get(java.lang.Object key)
public int hashCode()