Package pers.neige.neigeitems.utils.lazy
Class ThreadSafeLazyDouble
-
- All Implemented Interfaces:
-
java.util.function.DoubleSupplier
public class ThreadSafeLazyDouble implements DoubleSupplier
-
-
Constructor Summary
Constructors Constructor Description ThreadSafeLazyDouble(DoubleSupplier supplier)
ThreadSafeLazyDouble(double value)
-
Method Summary
Modifier and Type Method Description double
get()
boolean
isInitialized()
double
getAsDouble()
-
-
Constructor Detail
-
ThreadSafeLazyDouble
ThreadSafeLazyDouble(DoubleSupplier supplier)
-
ThreadSafeLazyDouble
ThreadSafeLazyDouble(double value)
-
-
Method Detail
-
get
double get()
-
isInitialized
boolean isInitialized()
-
getAsDouble
double getAsDouble()
-
-
-
-