Package com.spun.util.parser
Class TemplateNumberUtils
java.lang.Object
com.spun.util.parser.TemplateNumberUtils
public class TemplateNumberUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static TemplateNumberUtilsINSTANCE -
Method Summary
Modifier and Type Method Description static intasInt(Number d)static doubledoArithmetic(int arg1, String operation, int arg2)static doubledoArithmetic(String[] params)intgetScaling(Integer have, Integer max, Integer scale)static booleanisZero(double d)static booleanisZero(double d, double delta)static booleanisZero(Number d)static TemplateDoublemax(Number... numbers)static TemplateDoublemax(Number n1, Number n2, Number n3)
-
Field Details
-
INSTANCE
-
-
Method Details
-
isZero
public static boolean isZero(double d) -
isZero
-
asInt
-
isZero
public static boolean isZero(double d, double delta) -
getScaling
-
doArithmetic
-
doArithmetic
-
max
-
max
-