Package aQute.lib.unmodifiable
Class ImmutableMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
aQute.lib.unmodifiable.ImmutableMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
private static <K,
V> int[] int
hashCode()
private int
linear_probe
(Object key) private static <K,
V> int linear_probe
(Map.Entry<K, V>[] entries, int[] hash_bucket, Object key) void
putIfAbsent
(K key, V value) boolean
boolean
void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) int
size()
-
Field Details
-
EMPTY
-
entries
-
hash_bucket
final int[] hash_bucket -
entrySet
-
-
Constructor Details
-
ImmutableMap
-
-
Method Details
-
hash
-
linear_probe
-
linear_probe
-
entrySet
-
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
get
-
equals
-
hashCode
public int hashCode() -
put
-
remove
-
putAll
-
clear
public void clear() -
replaceAll
- Specified by:
replaceAll
in interfaceMap<K,
V>
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceMap<K,
V>
-
computeIfPresent
- Specified by:
computeIfPresent
in interfaceMap<K,
V>
-
compute
-
merge
-