java.lang.Object |
↳ |
com.pnfsoftware.jeb.util.collect.WeakValueMap<K, V> |
Class Overview
A map whose values (and only the values, not the keys) do not prevent garbage collection of
entries. The "opposite" of WeakHashMap. Key-value pairs with a null value should not be
inserted to this map; no guarantee on retrieval and persistence is provided for null values.
This map object supports serializability. It is serializable if its key and value types are also
serializable.
See Also
- WeakHashMap
- WeakKeyValueMap
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.util.Map
abstract
void
|
clear()
|
abstract
V
|
compute(K arg0, BiFunction<? super K, ? super V, ? extends V> arg1)
|
abstract
V
|
computeIfAbsent(K arg0, Function<? super K, ? extends V> arg1)
|
abstract
V
|
computeIfPresent(K arg0, BiFunction<? super K, ? super V, ? extends V> arg1)
|
abstract
boolean
|
containsKey(Object arg0)
|
abstract
boolean
|
containsValue(Object arg0)
|
abstract
Set<Entry<K, V>>
|
entrySet()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
void
|
forEach(BiConsumer<? super K, ? super V> arg0)
|
abstract
V
|
get(Object arg0)
|
abstract
V
|
getOrDefault(Object arg0, V arg1)
|
abstract
int
|
hashCode()
|
abstract
boolean
|
isEmpty()
|
abstract
Set<K>
|
keySet()
|
abstract
V
|
merge(K arg0, V arg1, BiFunction<? super V, ? super V, ? extends V> arg2)
|
abstract
V
|
put(K arg0, V arg1)
|
abstract
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
abstract
V
|
putIfAbsent(K arg0, V arg1)
|
abstract
boolean
|
remove(Object arg0, Object arg1)
|
abstract
V
|
remove(Object arg0)
|
abstract
boolean
|
replace(K arg0, V arg1, V arg2)
|
abstract
V
|
replace(K arg0, V arg1)
|
abstract
void
|
replaceAll(BiFunction<? super K, ? super V, ? extends V> arg0)
|
abstract
int
|
size()
|
abstract
Collection<V>
|
values()
|
|
Public Constructors
public
WeakValueMap
(int initialCapacity, float loadFactor)
public
WeakValueMap
(int initialCapacity)
public
WeakValueMap
(Map<K, V> t)
Public Methods
public
boolean
containsKey
(Object key)
public
boolean
containsValue
(Object value)
public
Set<Entry<K, V>>
entrySet
()
public
boolean
equals
(Object obj)
public
V
get
(Object key)
public
boolean
isEmpty
()
public
V
put
(K key, V value)
public
void
putAll
(Map<? extends K, ? extends V> m)
public
V
remove
(Object key)
public
String
toString
()
public
Collection<V>
values
()