public class DeltaMap<K,V> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DeltaMap(Map<K,V> base)
Creates a
DeltaMap with the given base map. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Map<K,V> |
getAdditions()
Returns the additions that have been applied to this map.
|
Map<K,V> |
getRemovals()
Returns the removals that have been applied to this map.
|
V |
put(K key,
V value) |
V |
remove(Object e) |
void |
reset()
Clears all the changes tracked resetting the contents of this map to the base map.
|
int |
size() |
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic void reset()
public Map<K,V> getAdditions()
public Map<K,V> getRemovals()
public void clear()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>Copyright © 2019. All rights reserved.