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 void
nullNotPermitted
(Object param, String name) Throws anIllegalArgumentException
if the suppliedparam
isnull
.static void
requireNonNegative
(int value, String name) Throws anIllegalArgumentException
ifvalue
is negative.
-
Constructor Details
-
ParamChecks
public ParamChecks()
-
-
Method Details
-
nullNotPermitted
Throws anIllegalArgumentException
if the suppliedparam
isnull
.- Parameters:
param
- the parameter to check (null
permitted).name
- the name of the parameter (to use in the exception message ifparam
isnull
).- Throws:
IllegalArgumentException
- ifparam
isnull
.- Since:
- 1.0.14
-
requireNonNegative
Throws anIllegalArgumentException
ifvalue
is negative.- Parameters:
value
- the value.name
- the parameter name (for use in the exception message).- Since:
- 1.0.18
-