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