Class TWeakHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- de.mirkosertic.bytecoder.classlib.java.util.TWeakHashMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class TWeakHashMap<K,V> extends java.util.AbstractMap<K,V> implements java.util.Map<K,V>
-
-
Constructor Summary
Constructors Constructor Description TWeakHashMap()
TWeakHashMap(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
V
computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
V
computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
void
forEach(java.util.function.BiConsumer<? super K,? super V> action)
V
getOrDefault(java.lang.Object key, V defaultValue)
V
merge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
V
putIfAbsent(K key, V value)
boolean
remove(java.lang.Object key, java.lang.Object value)
V
replace(K key, V value)
boolean
replace(K key, V oldValue, V newValue)
void
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Method Detail
-
replaceAll
public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
-
remove
public boolean remove(java.lang.Object key, java.lang.Object value)
-
computeIfAbsent
public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
-
computeIfPresent
public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
-
compute
public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
-
-