up front or once at some point
after declaration.
Note
If a Serializable class has a ValueHolder property, that property should be declared transient!
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final ValueHolder. | |
| private T | |
| private final ValueHolder. |
| Access | Constructor and Description |
|---|---|
| public | ValueHolder(ValueHolder.
The initializer to use in valueInitializergetValue when value not yet known.Instantiates a |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| NO_DEFERRED_INITIALIZER | back to summary |
|---|---|
| private static final ValueHolder. | |
| value | back to summary |
|---|---|
| private T value | |
| valueInitializer | back to summary |
|---|---|
| private final ValueHolder. | |
| ValueHolder | back to summary |
|---|---|
| public ValueHolder(ValueHolder. Instantiates a
| |
| ValueHolder | back to summary |
|---|---|
public ValueHolder(T value)
| |
| getValue | back to summary |
|---|---|
| public T getValue() | |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| initialize | back to summary |
|---|---|
| public T initialize() Build the initialization value. Implementation Note returning
| |