Package com.nomagic.magicdraw.uml2
Class CachedValueSupplier<T>
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.CachedValueSupplier<T>
-
- All Implemented Interfaces:
java.util.function.Supplier<T>
class CachedValueSupplier<T> extends java.lang.Object implements java.util.function.Supplier<T>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
calculated
private java.util.function.Supplier<T>
calculateSupplier
private T
value
-
Constructor Summary
Constructors Constructor Description CachedValueSupplier(java.util.function.Supplier<T> calculateSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
calculate()
T
get()
void
reset()
-
-
-
Constructor Detail
-
CachedValueSupplier
public CachedValueSupplier(java.util.function.Supplier<T> calculateSupplier)
-
-