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) void
clear()
clone()
static final <K,
V> Map.Entry <K, V> entryOf
(K key, V val) boolean
boolean
equivalent
(Object other, EqualityComparator<Object> cmp) boolean
isEmpty()
boolean
static <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()
void
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.usethesource.capsule.Map
containsKey, containsValue, get, hashCode, keyIterator, size
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, values
Methods inherited from interface io.usethesource.capsule.Map.Immutable
__put, __remove, asTransient
Methods inherited from interface io.usethesource.capsule.MapEq
containsKeyEquivalent, containsValueEquivalent, getEquivalent
Methods 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:
equivalent
in interfaceMapEq<K,
V>
-
valueIterator
- Specified by:
valueIterator
in interfaceMap<K,
V>
-
entryIterator
- Specified by:
entryIterator
in interfaceMap<K,
V>
-
__putAll
- Specified by:
__putAll
in interfaceMap.Immutable<K,
V>
-
__putAllEquivalent
public Map.Immutable<K,V> __putAllEquivalent(Map<? extends K, ? extends V> map, EqualityComparator<Object> cmp) - Specified by:
__putAllEquivalent
in interfaceMapEq.Immutable<K,
V>
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
isTransientSupported
public boolean isTransientSupported()- Specified by:
isTransientSupported
in interfaceMap.Immutable<K,
V>
-