public interface Cache<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
copyEntriesInto(Collection<? super Map.Entry<K,V>> c) |
void |
copyKeysInto(Collection<? super K> c) |
void |
copyValuesInto(Collection<? super V> c) |
V |
get(K key) |
boolean |
isEmpty() |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(K key) |
boolean |
remove(K key,
V value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
int |
size() |
int size()
boolean isEmpty()
void copyKeysInto(Collection<? super K> c)
void copyValuesInto(Collection<? super V> c)
void copyEntriesInto(Collection<? super Map.Entry<K,V>> c)
void clear()
Copyright © 2004-2015 Cojen. All Rights Reserved.