K - The key type.V - The value type.public class SequentialTwoWayHashMap<K,V> extends TwoWayHashMap<K,V>
| Red (tfeng) |
| Yellow (tfeng) |
| Constructor and Description |
|---|
SequentialTwoWayHashMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear this two-way hash map.
|
java.lang.Object |
clone()
Clone this two-way hash map and return the clone.
|
java.util.List<K> |
keys()
Return a sorted list of keys.
|
V |
put(K key,
V value)
Put a value into this two-way hash map and associate it with a key.
|
V |
remove(java.lang.Object key)
Remove the value associated with the given key.
|
void |
removeLast()
Remove the value associated with the last key.
|
void |
retain(int count)
Retain only the first count keys and their values, and remove the other
keys and values.
|
containsValue, getKey, valuescompute, computeIfAbsent, computeIfPresent, containsKey, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, sizepublic void clear()
public java.lang.Object clone()
clone in class TwoWayHashMap<K,V>public java.util.List<K> keys()
public V put(K key, V value)
public V remove(java.lang.Object key)
public void removeLast()
public void retain(int count)
count - The number of key-value pairs to be retained.