Package com.jml.util
Class ValueError
java.lang.Object
com.jml.util.ValueError
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNonNegative(double val)
Checks if a value is non-negativestatic boolean
isPositive(double val)
Checks if a value is positive
-
Method Details
-
isNonNegative
public static boolean isNonNegative(double val)Checks if a value is non-negative- Returns:
- Returns true if the value is 0 or positive. Otherwise, returns false.
-
isPositive
public static boolean isPositive(double val)Checks if a value is positive- Returns:
- Returns true if the value is positive. Otherwise, returns false.
-