public class OpMap<K,V> extends AbstractMap<K,V> implements Map<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
OpMap(Class<V> factory) |
OpMap(Map<K,V> adaptee,
Class<V> factory) |
OpMap(Map<K,V> adaptee,
OpMapValueFactory<K,V> factory) |
OpMap(OpMapValueFactory<K,V> factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
V |
div(K key,
V value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
V |
getOrCreate(K key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
mul(K key,
V value) |
V |
neg(K key) |
V |
plus(K key,
V value) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
clonefinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic OpMap(OpMapValueFactory<K,V> factory)
public int size()
public boolean isEmpty()
public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public void clear()
public Collection<V> values()
public boolean equals(Object o)
public int hashCode()
public String toString()
toString in class AbstractMap<K,V>Copyright © 2021 vpc open source initiative. All rights reserved.