Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.holders;
 
Wrapper class which ``holds'' an Object reference, enabling methods to return Object references through arguments.
 
 public class ObjectHolder<T>  implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

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

Constructs a new ObjectHolder with an initial value of null.
	public ObjectHolder() {
		 = null;
	}

Constructs a new ObjectHolder with a specific initial value.

Parameters:
o Initial Object reference.
	public ObjectHolder(T o) {
		 = o;
	}
		return ObjectHolder.class.getField("value");
	}
New to GrepCode? Check out our FAQ X