Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.count;
public class BooleanCounter extends Counter {
	protected Boolean value = null
	public void setValue(Boolean value) {
		try {
		catch (InterruptedException x) {
			return;   // should only happen under bad conditions, so probably nothing we can do
		}
		// we are locked during whole set/notify process so be efficient 
		try {
			this. = value;
	    	this.setChanged();
		}
		finally {
		}
	}
	public Boolean getValue() {
		return this.;
	}
	public BooleanCounter(String name) {
		super(name);
	}
	public BooleanCounter(String nameBoolean value) {
		this(name);
		this.setValue(value);
	}
	public Counter clone() {
		BooleanCounter clone = new BooleanCounter(this.this.);
		this.copyToClone(clone);
		return clone;
	}
	public RecordStruct toRecord() {
		return new RecordStruct(new FieldStruct("Name"this.), new FieldStruct("Value"this.),
				new FieldStruct("Object"this.));
	}
		return new RecordStruct(new FieldStruct("Name"this.), new FieldStruct("Value"this.));
	}
	public void reset() {
		super.reset();
		this. = null;
	}
New to GrepCode? Check out our FAQ X