Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.argparser.handlers;
 
 
A float wrapper

Author(s):
bpiwowar
@HandlerInformation({float.classFloat.class})
public class FloatHandler extends FloatingPointHandler  {
	public FloatHandler(Object objectField field) {
		super(objectfield);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see yrla.argparser.holders.Holder#scan(yrla.argparser.StringScanner)
	 */
	public Object process(ArgParser argParserStringScanner scannerthrows StringScanExceptionIllegalArgumentValue {
		final double v = scanner.scanDouble();
		addValue((float)v);
		check(v);
		return v;
	}
New to GrepCode? Check out our FAQ X