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 {
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() {

Constructs a new BooleanHolder with a specific initial value.

b Initial boolean value.
	public BooleanHolder(boolean b) {

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

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