T - the type of value being wrappedpublic final class Wrapper<T>
extends java.lang.Object
This class is not thread-safe. It is intended for use in scenarios such as capturing and mutating a variable from within a lambda expression.
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Returns the current value.
|
void |
setValue(T value)
Sets a new value.
|
java.lang.String |
toString() |