java.lang.Object
java.util.AbstractMap<K,V>
de.cronn.reflection.util.immutable.collection.DeepImmutableMap<K,V>
- All Implemented Interfaces:
Immutable, java.io.Serializable, java.util.Map<K,V>
public class DeepImmutableMap<K,V>
extends java.util.AbstractMap<K,V>
implements Immutable, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
-
Method Summary
| Modifier and Type |
Method |
Description |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
|
V |
get(java.lang.Object key) |
|
V |
put(K key,
V value) |
|
V |
remove(java.lang.Object key) |
|
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
public DeepImmutableMap(
java.util.Map<K,V> delegate)
-
Method Details
-
public V get(
java.lang.Object key)
- Specified by:
get in interface java.util.Map<K,V>
- Overrides:
get in class java.util.AbstractMap<K,V>
-
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface java.util.Map<K,V>
- Specified by:
entrySet in class java.util.AbstractMap<K,V>
-
public V put(
K key,
V value)
- Specified by:
put in interface java.util.Map<K,V>
- Overrides:
put in class java.util.AbstractMap<K,V>
-
public V remove(
java.lang.Object key)
- Specified by:
remove in interface java.util.Map<K,V>
- Overrides:
remove in class java.util.AbstractMap<K,V>