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 Vcompute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)VcomputeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)VcomputeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)java.util.Set<java.util.Map.Entry<K,V>>entrySet()voidforEach(java.util.function.BiConsumer<? super K,? super V> action)VgetOrDefault(java.lang.Object key, V defaultValue)Vmerge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)VputIfAbsent(K key, V value)booleanremove(java.lang.Object key, java.lang.Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)voidreplaceAll(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)
-
-