Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.holders;


Wrapper class which ``holds'' a double value, enabling methods to return double values through arguments.
 
 public class DoubleHolder extends Holder<Doubleimplements java.io.Serializable {
 	private static final long serialVersionUID = 6475123456594514908L;

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

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

Constructs a new DoubleHolder with a specific initial value.

Parameters:
d Initial double value.
	public DoubleHolder(double d) {
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see yrla.argparser.holders.DoubleHolderInterface#setValue(double)
	 */
	public void setValue(double value) {
		this. = value;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see yrla.argparser.holders.DoubleHolderInterface#getValue()
	 */
	public Double getValue() {
		return ;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return Double.toString();
	}
	protected void setValue(String argument) {
		this. = Double.valueOf(argument);
	}
New to GrepCode? Check out our FAQ X