Package | Description |
---|---|
net.minecraftforge.common.util |
Modifier and Type | Class and Description |
---|---|
static class |
Lazy.Concurrent<T>
Thread-safe implementation.
|
static class |
Lazy.Fast<T>
Non-thread-safe implementation.
|
Modifier and Type | Method and Description |
---|---|
static <T> Lazy<T> |
Lazy.concurrentOf(java.util.function.Supplier<T> supplier)
Constructs a thread-safe lazy-initialized object
|
static <T> Lazy<T> |
Lazy.of(java.util.function.Supplier<T> supplier)
Constructs a lazy-initialized object
|