- Type Parameters:
T
- the type of value held by this Holder
public class Holder<T>
extends Object
Holder of an object.
- Since:
- 4.3
-
Constructor Summary
Constructors
-
Method Summary
Get the value held by this
Holder
void
Set a new value held by this
Holder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Holder
- Parameters:
value
- is the initial value that is set(Object)
-
Method Details
-
get
Get the value held by this
Holder
- Returns:
- the value held by this
Holder
-
set
Set a new value held by this
Holder
- Parameters:
value
- to be set as new value held by this
Holder