Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.holders;
 
Wrapper class which ``holds'' a boolean value, enabling methods to return boolean values through arguments.
public class BooleanHolder extends Holder<Booleanimplements java.io.Serializable {
Value of the boolean, set and examined by the application as needed.
	private boolean value;

Constructs a new BooleanHolder with an initial value of false.
	public BooleanHolder() {
		setValue(false);
	}

Constructs a new BooleanHolder with a specific initial value.

Parameters:
b Initial boolean value.
	public BooleanHolder(boolean b) {
	}

Parameters:
value the value to set
	public void setValue(boolean value) {
		this. = value;
	}

Returns:
the value
	public Boolean getValue() {
		return ;
	}
	protected void setValue(String argumentthrows ArgParseException {
		this. = Boolean.parseBoolean(argument);
	}
New to GrepCode? Check out our FAQ X