Package org.jfree.chart.util
Class ParamChecks
- java.lang.Object
-
- org.jfree.chart.util.ParamChecks
-
public class ParamChecks extends java.lang.Object
A utility class for checking parameters.- Since:
- 1.0.14
-
-
Constructor Summary
Constructors Constructor Description ParamChecks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnullNotPermitted(java.lang.Object param, java.lang.String name)Throws anIllegalArgumentExceptionif the suppliedparamisnull.static voidrequireNonNegative(int value, java.lang.String name)Throws anIllegalArgumentExceptionifvalueis negative.
-
-
-
Constructor Detail
-
ParamChecks
public ParamChecks()
-
-
Method Detail
-
nullNotPermitted
public static void nullNotPermitted(java.lang.Object param, java.lang.String name)
Throws anIllegalArgumentExceptionif the suppliedparamisnull.- Parameters:
param- the parameter to check (nullpermitted).name- the name of the parameter (to use in the exception message ifparamisnull).- Throws:
java.lang.IllegalArgumentException- ifparamisnull.- Since:
- 1.0.14
-
requireNonNegative
public static void requireNonNegative(int value, java.lang.String name)
Throws anIllegalArgumentExceptionifvalueis negative.- Parameters:
value- the value.name- the parameter name (for use in the exception message).- Since:
- 1.0.18
-
-