Class SingleValueCache<K,V>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.util.SingleValueCache<K,V>
-
- Type Parameters:
K
-V
-
public class SingleValueCache<K,V> extends Object
Minimalistic cache holding only one last set value
-
-
Constructor Summary
Constructors Constructor Description SingleValueCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(K key, Function<K,? extends V> valueLoader)
V
getIfPresent(Object key)
void
invalidate()
boolean
isPresent()
void
put(K key, V value)
-