Package com.jml.util

Class ValueError

java.lang.Object
com.jml.util.ValueError

public class ValueError extends Object
  • 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.