public interface LookupCache<K,V>
Note that while interface itself does not specify synchronization requirements for implementations, specific use cases do. Typically implementations are expected to be thread-safe, that is, to handle synchronization.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Method for removing all contents this cache has.
|
V |
get(Object key)
NOTE: key is of type Object only to retain binary backwards-compatibility
|
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
int |
size() |
int size()
V get(Object key)
key
- void clear()
Copyright © 2008–2022 FasterXML. All rights reserved.