Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.holders;

Wrapper class which ``holds'' an integer value, enabling methods to return integer values through arguments.
 
 public class IntHolder extends Holder<Integerimplements java.io.Serializable {
 	private static final long serialVersionUID = 1L;

Value of the integer, set and examined by the application as needed.
	private int value;

Constructs a new IntHolder with an initial value of 0.
	public IntHolder() {
	}

Constructs a new IntHolder with a specific initial value.

Parameters:
i Initial integer value.
	public IntHolder(int i) {
	}
	public void setValue(String value) {
		this. = Integer.parseInt(value);
	}
	public void setValue(int value) {
		this. = value;
	}
	/* (non-Javadoc)
	 * @see bpiwowar.argparser.holders.Holder#getValue()
	 */
	public Integer getValue() {
		return ;
	}
New to GrepCode? Check out our FAQ X