K - the type of keysV - the type of mapped valuespublic interface Cache<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the contents of the cache.
|
V |
get(K key)
Gets an entry from the cache.
|
boolean |
isEmpty()
Returns
true if this cache contains no key-value mappings. |
Set<K> |
keySet()
Returns a Set view of the keys contained in this cache.
|
void |
put(K key,
V value)
Associates the specified value with the specified key in the cache.
|
void |
remove(K key)
Removes an entry from the cache.
|
int |
size() |
V get(K key)
key - the key whose associated value is to be returnednull, if it does not exist.void put(K key, V value)
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keyNullPointerException - if key is null or if value is nullvoid clear()
void remove(K key)
key - key with which the specified value is to be associated.int size()
boolean isEmpty()
true if this cache contains no key-value mappings.Copyright © 2014–2020 Camunda Services GmbH. All rights reserved.