Package jetbrains.buildServer.util
Class SynchroDictionary<K,V>
- java.lang.Object
-
- jetbrains.buildServer.util.SynchroDictionary<K,V>
-
public final class SynchroDictionary<K,V> extends java.lang.Object
Fine-synchronized dictionary.- Author:
- Leonid Bushuev from JetBrains
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SynchroDictionary.Function<K,V>
static interface
SynchroDictionary.NonCacheableValue
Marker interface which can be used to mark values returned by data provider, which should not be cached
-
Constructor Summary
Constructors Constructor Description SynchroDictionary(SynchroDictionary.Function<K,V> dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(K key)
V
get(K key)
V
getIfPresent(K key)
void
invalidate(K key)
void
invalidateAll()
void
invalidateAll(Filter<V> cachedDataFilter)
boolean
replace(K key, V current, V newVal)
-
-
-
Constructor Detail
-
SynchroDictionary
public SynchroDictionary(@NotNull SynchroDictionary.Function<K,V> dataProvider)
-
-