public final class FinalParameterContainer<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private T |
value
The object which cannot be final.
|
| Constructor and Description |
|---|
FinalParameterContainer(T value)
The constructor takes the non-final object and stores it internally.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Getter for contained object.
|
void |
setValue(T value)
Setter for contained object.
|
private T value
public FinalParameterContainer(T value)
value - The non-final object.public T getValue()
public void setValue(T value)
value - The new value to be stored in the container. Usually called from lambda/inner-class