Package org.jfree.chart.util
Class ParamChecks
java.lang.Object
org.jfree.chart.util.ParamChecks
A utility class for checking parameters.
- Since:
- 1.0.14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnullNotPermitted(Object param, String name) Throws anIllegalArgumentExceptionif the suppliedparamisnull.static voidrequireNonNegative(int value, String name) Throws anIllegalArgumentExceptionifvalueis negative.
-
Constructor Details
-
ParamChecks
public ParamChecks()
-
-
Method Details
-
nullNotPermitted
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:
IllegalArgumentException- ifparamisnull.- Since:
- 1.0.14
-
requireNonNegative
Throws anIllegalArgumentExceptionifvalueis negative.- Parameters:
value- the value.name- the parameter name (for use in the exception message).- Since:
- 1.0.18
-