Class ParamChecks

java.lang.Object
org.jfree.chart.util.ParamChecks

public class ParamChecks extends Object
A utility class for checking parameters.
Since:
1.0.14
  • Constructor Details

    • ParamChecks

      public ParamChecks()
  • Method Details

    • nullNotPermitted

      public static void nullNotPermitted(Object param, String name)
      Throws an IllegalArgumentException if the supplied param is null.
      Parameters:
      param - the parameter to check (null permitted).
      name - the name of the parameter (to use in the exception message if param is null).
      Throws:
      IllegalArgumentException - if param is null.
      Since:
      1.0.14
    • requireNonNegative

      public static void requireNonNegative(int value, String name)
      Throws an IllegalArgumentException if value is negative.
      Parameters:
      value - the value.
      name - the parameter name (for use in the exception message).
      Since:
      1.0.18