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 io.usethesource.capsule.Map
Map.Immutable<K,V>, Map.Transient<K, V> Nested classes/interfaces inherited from interface io.usethesource.capsule.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 java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.usethesource.capsule.Map
containsKey, containsValue, get, hashCode, keyIterator, sizeMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, valuesMethods inherited from interface io.usethesource.capsule.Map.Immutable
__put, __remove, asTransientMethods inherited from interface io.usethesource.capsule.MapEq
containsKeyEquivalent, containsValueEquivalent, getEquivalentMethods inherited from interface io.usethesource.capsule.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
public void clear() -
put
-
putAll
-
isEmpty
public boolean isEmpty() -
equals
-
equivalent
- Specified by:
equivalentin interfaceMapEq<K,V>
-
valueIterator
- Specified by:
valueIteratorin interfaceMap<K,V>
-
entryIterator
- Specified by:
entryIteratorin interfaceMap<K,V>
-
__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>
-