Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package se.ranzdo.bukkit.methodcommand.handlers;
 
 import  org.bukkit.command.CommandSender;
 
 
 public class DoubleArgumentHandler extends NumberArgumentHandler<Double> {
 	public DoubleArgumentHandler() {
		setMessage("parse_error""The parameter [%p] is not a number");
	}
	public Double transform(CommandSender senderCommandArgument argumentString valuethrows TransformError {
		try {
			return Double.parseDouble(value);
		}
			throw new TransformError(argument.getMessage("parse_error"));
		}
	}
New to GrepCode? Check out our FAQ X