T
- the type of value held by this Holder
public class Holder<T>
extends java.lang.Object
Constructor and Description |
---|
Holder(T value)
Constructor for Holder.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the value held by this
Holder |
void |
set(T value)
Set a new value held by this
Holder |
private T value
public Holder(T value)
Constructor for Holder.
value
- is the initial value that is set(Object)