Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.holders;


Wrapper class which ``holds'' a float value, enabling methods to return float values through arguments.
 
 public class FloatHolder extends Holder<Floatimplements java.io.Serializable {
 	private static final long serialVersionUID = -7362196628680520477L;

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

Constructs a new FloatHolder with an initial value of 0.
	public FloatHolder() {
		 = 0;
	}

Constructs a new FloatHolder with a specific initial value.

Parameters:
f Initial float value.
	public FloatHolder(float f) {
		 = f;
	}
	public Float getValue() {
		return ;
	}
	protected void setValue(String argument) {
		this. = Float.valueOf(argument);
	}
New to GrepCode? Check out our FAQ X