Package jetbrains.buildServer.util
Class Cached<V>
- java.lang.Object
-
- jetbrains.buildServer.util.Cached<V>
-
public final class Cached<V> extends java.lang.Object
Provides a cached lazy-calculated value.- Author:
- Leonid Bushuev from JetBrains
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Cached.Calculator<CV>
-
Constructor Summary
Constructors Constructor Description Cached(Cached.Calculator<V> calculator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
void
invalidate()
-
-
-
Constructor Detail
-
Cached
public Cached(@NotNull Cached.Calculator<V> calculator)
-
-
Method Detail
-
get
@NotNull public V get()
-
invalidate
public void invalidate()
-
-