T - The class of object to be wrapped.public class Mutable<T> extends Object
| Constructor and Description |
|---|
Mutable()
Default constructor.
|
Mutable(T val)
Creates a wrapper for
val. |
| Modifier and Type | Method and Description |
|---|---|
T |
getVal()
Returns the wrapped value.
|
void |
setVal(T val)
Sets the new value for
val. |
String |
toString()
Returns the string representation of the
val. |
public T val
public Mutable()
public Mutable(T val)
val.val - Any object to be wrapped.Copyright © 2014–2020 Nitor Creations. All rights reserved.