Mutable is used as a generic interface to the implementations in this package.
A typical use case would be to enable a primitive or string to be passed to a method and allow that method to effectively change the value of the primitive/object. Another use case is to store a frequently changing primitive in a collection (for example a total in a map) without needing to create new Integer/Long wrapper objects.
| Modifier and Type | Method and Description |
|---|---|
| public default T | Returns: the stored value.Implements java. Gets the value of this mutable. |
| public T | |
| public void |
| get | back to summary |
|---|---|
| public default T get() Implements java. Gets the value of this mutable.
| |
| getValue | back to summary |
|---|---|
| public T getValue()
Deprecated Use Gets the value of this mutable.
| |
| setValue | back to summary |
|---|---|
| public void setValue(T value) Sets the value of this mutable.
| |