public static final class NonNullLazy.Concurrent<T> extends java.lang.Object implements NonNullLazy<T>
NonNullLazy.Concurrent<T>, NonNullLazy.Fast<T>| Modifier and Type | Field and Description |
|---|---|
private T |
instance |
private static java.lang.Object |
lock |
private NonNullSupplier<T> |
supplier |
| Modifier | Constructor and Description |
|---|---|
private |
Concurrent(NonNullSupplier<T> supplier) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconcurrentOf, ofprivate static final java.lang.Object lock
private volatile NonNullSupplier<T> supplier
private volatile T instance
private Concurrent(NonNullSupplier<T> supplier)
@Nonnull public final T get()
get in interface NonNullSupplier<T>