bpiwowar.argparser.holders
Class ObjectHolder<T>
java.lang.Object
bpiwowar.argparser.holders.ObjectHolder<T>
- All Implemented Interfaces:
- Serializable
public class ObjectHolder<T>
- extends Object
- implements Serializable
Wrapper class which ``holds'' an Object reference, enabling methods to return
Object references through arguments.
- See Also:
- Serialized Form
Field Summary |
T |
value
Value of the Object reference, set and examined by the application as
needed. |
Constructor Summary |
ObjectHolder()
Constructs a new ObjectHolder with an initial value of
null . |
ObjectHolder(T o)
Constructs a new ObjectHolder with a specific initial
value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public T value
- Value of the Object reference, set and examined by the application as
needed.
ObjectHolder
public ObjectHolder()
- Constructs a new
ObjectHolder
with an initial value of
null
.
ObjectHolder
public ObjectHolder(T o)
- Constructs a new
ObjectHolder
with a specific initial
value.
- Parameters:
o
- Initial Object reference.
getValueField
public Field getValueField()
throws SecurityException,
NoSuchFieldException
- Throws:
SecurityException
NoSuchFieldException
Copyright © 2013. All Rights Reserved.