Package de.inetsoftware.classparser
Class WeakValueCache<K,V>
java.lang.Object
de.inetsoftware.classparser.WeakValueCache<K,V>
- Type Parameters:
K
- the key typeV
- the value type
A simple cache for weak values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
WeakValueCache
public WeakValueCache()
-
-
Method Details
-
put
Put a value- Parameters:
key
- the keyvalue
- the value
-
get
Get the value if in the cache- Parameters:
key
- the key- Returns:
- the value or null
-