Class SoftReferenceCache<T>
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.util.SoftReferenceCache<T>
-
public class SoftReferenceCache<T> extends java.lang.ObjectCaches a value with a soft reference.- Since:
- 6.1.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSoftReferenceCache.UnsafeSupplier<T>Supplier which can throw exceptions.
-
Constructor Summary
Constructors Constructor Description SoftReferenceCache(SoftReferenceCache.UnsafeSupplier<T> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(java.util.function.Consumer<T> f)Tget()Gets the value of this cache.booleanhasValue()
-
-
-
Constructor Detail
-
SoftReferenceCache
public SoftReferenceCache(SoftReferenceCache.UnsafeSupplier<T> supplier)
-
-