K - V - public class SoftCache<K,V> extends Object
| Constructor and Description |
|---|
SoftCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all associations from this map.
|
V |
get(Object key)
Returns value associated with given key, or null if none.
|
V |
put(K key,
V value)
Associates value with given key, returning value previously associated
with key, or null if none.
|
V |
remove(Object key)
Removes association for given key, returning value previously associated
with key, or null if none.
|
public V put(K key, V value)
key - value - public V get(Object key)
key - public V remove(Object key)
key - public void clear()
Copyright © 2016–2018. All rights reserved.