Class AbstractSpecialisedImmutableMap<K,V>
java.lang.Object
io.usethesource.capsule.util.collection.AbstractSpecialisedImmutableMap<K,V>
- All Implemented Interfaces:
Map<K,V>, Map.Immutable<K, V>, MapEq<K, V>, MapEq.Immutable<K, V>, Serializable, Cloneable, Map<K, V>
public abstract class AbstractSpecialisedImmutableMap<K,V>
extends Object
implements Map.Immutable<K,V>, Cloneable, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Map
Map.Immutable<K,V>, Map.Transient<K, V> Nested classes/interfaces inherited from interface MapEq
MapEq.Immutable<K,V>, MapEq.Transient<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__putAllEquivalent(Map<? extends K, ? extends V> map, EqualityComparator<Object> cmp) voidclear()clone()static final <K,V> Map.Entry <K, V> entryOf(K key, V val) booleanbooleanequivalent(Object other, EqualityComparator<Object> cmp) booleanisEmpty()booleanstatic <K,V> Map.Immutable <K, V> mapOf()static <K,V> Map.Immutable <K, V> static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1) static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1, K key2, V val2) static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3) static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4) static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4, K key5, V val5) static <K,V> Map.Immutable <K, V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4, K key5, V val5, K key6, V val6) private static <K,V> Map.Immutable <K, V> of()voidMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
containsKey, containsValue, get, hashCode, keyIterator, sizeMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, valuesMethods inherited from interface Map.Immutable
__put, __remove, asTransientMethods inherited from interface MapEq
containsKeyEquivalent, containsValueEquivalent, getEquivalentMethods inherited from interface MapEq.Immutable
__putEquivalent, __removeEquivalent
-
Field Details
-
EMPTY_MAP
-
-
Constructor Details
-
AbstractSpecialisedImmutableMap
public AbstractSpecialisedImmutableMap()
-
-
Method Details
-
of
-
mapOf
-
entryOf
-
mapOf
-
mapOf
-
mapOf
-
mapOf
public static <K,V> Map.Immutable<K,V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4) -
mapOf
public static <K,V> Map.Immutable<K,V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4, K key5, V val5) -
mapOf
public static <K,V> Map.Immutable<K,V> mapOf(K key1, V val1, K key2, V val2, K key3, V val3, K key4, V val4, K key5, V val5, K key6, V val6) -
mapOf
-
remove
-
clear
-
put
-
putAll
-
isEmpty
-
equals
-
equivalent
- Specified by:
equivalentin interfaceMapEq<K,V>
-
valueIterator
-
entryIterator
-
__putAll
- Specified by:
__putAllin interfaceMap.Immutable<K,V>
-
__putAllEquivalent
public Map.Immutable<K,V> __putAllEquivalent(Map<? extends K, ? extends V> map, EqualityComparator<Object> cmp) - Specified by:
__putAllEquivalentin interfaceMapEq.Immutable<K,V>
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isTransientSupported
public boolean isTransientSupported()- Specified by:
isTransientSupportedin interfaceMap.Immutable<K,V>
-