public abstract static class LazyInitializer.NullableValue<T>
extends java.lang.Object
Constructor and Description |
---|
NullableValue() |
Modifier and Type | Method and Description |
---|---|
T |
get()
Initializes the value if necessary and returns it.
|
abstract T |
initialize() |
boolean |
isNotNull()
Checks if the value is initialized to not-null, forces initialization if necessary.
|
protected void |
onInitialized(T value)
Called on the initialization completion.
|
protected void |
set(T value) |
java.lang.String |
toString() |
public abstract T initialize()
public T get()
protected void set(T value)
public final boolean isNotNull()
protected void onInitialized(T value)
value
- the initialized valuepublic java.lang.String toString()
toString
in class java.lang.Object