public static final class LazyInitializer.MutableNotNullValue<T> extends LazyInitializer.NullableValue<T>
Constructor and Description |
---|
MutableNotNullValue(java.util.function.Supplier<? extends T> supplier) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Initializes the value if necessary and returns it.
|
T |
initialize() |
void |
set(T value) |
isNotNull, onInitialized, toString
public MutableNotNullValue(java.util.function.Supplier<? extends T> supplier)
public T get()
LazyInitializer.NullableValue
get
in class LazyInitializer.NullableValue<T>
public void set(T value)
set
in class LazyInitializer.NullableValue<T>
public final T initialize()
initialize
in class LazyInitializer.NullableValue<T>