Map as an EconomicMap.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements org. Removes all of the mappings from this map. |
| public boolean | containsKey(K key)
Implements org. Returns |
| public V | get(K key)
Implements org. Returns the value to which |
| public MapCursor | getEntries()
Implements org. Returns a |
| public Iterable | getKeys()
Implements org. Returns a |
| public Iterable | getValues()
Implements org. Returns a |
| public boolean | isEmpty()
Implements org. Returns |
| public V | put(K key, V value)
Implements org. Associates |
| public V | putIfAbsent(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides default org. If the specified key is not already associated with a value (or is mapped to |
| public V | removeKey(K key)
Implements org. Removes the mapping for |
| public void | replaceAll(BiFunction<? super K, ? super V, ? extends V> function)
Implements org. Replaces each entry's value with the result of invoking |
| public int | size()
Implements org. Returns the number of key-value mappings in this map. |
| public String |
| map | back to summary |
|---|---|
| private final Map<K, V> map | |
| EconomicMapWrap | back to summary |
|---|---|
public EconomicMapWrap(Map<K, V> map)
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Removes all of the mappings from this map. The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(K key) Implements org. Doc from org. Returns
| |
| get | back to summary |
|---|---|
| public V get(K key) Implements org. Doc from org. Returns the value to which
| |
| getEntries | back to summary |
|---|---|
| public MapCursor Implements org. Doc from org. Returns a
| |
| getKeys | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Returns a
| |
| getValues | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Returns a
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Returns
| |
| put | back to summary |
|---|---|
| public V put(K key, V value) Implements org. Doc from org. Associates
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(K key, V value) Overrides default org. Doc from org. If the specified key is not already associated with a value (or is mapped to
| |
| removeKey | back to summary |
|---|---|
| public V removeKey(K key) Implements org. Doc from org. Removes the mapping for
| |
| replaceAll | back to summary |
|---|---|
| public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) Implements org. Doc from org. Replaces each entry's value with the result of invoking
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns the number of key-value mappings in this map.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |