Package uk.ac.manchester.spinnaker.utils
Class ValueHolder<T>
java.lang.Object
uk.ac.manchester.spinnaker.utils.ValueHolder<T>
- Type Parameters:
T
- The type of value to hold.
public class ValueHolder<T> extends Object
A simple class that can optionally hold a single value. This class is
modifiable.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description ValueHolder()
Create an instance.ValueHolder(T value)
Create an instance. -
Method Summary
-
Constructor Details
-
ValueHolder
public ValueHolder()Create an instance. The initial value held isnull
. -
ValueHolder
Create an instance.- Parameters:
value
- The initial value to hold.
-
-
Method Details