bpiwowar.argparser.holders
Class ObjectHolder<T>

java.lang.Object
  extended by 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.
 
Method Summary
 Field getValueField()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public T value
Value of the Object reference, set and examined by the application as needed.

Constructor Detail

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.
Method Detail

getValueField

public Field getValueField()
                    throws SecurityException,
                           NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException


Copyright © 2013. All Rights Reserved.