checkArgument
Ensures the truth of an expression involving one or more parameters to the calling method.
Parameters
expression
a boolean expression.
message
the exception message to use if the check fails; will be converted to a string using String.valueOf(Object)
Throws
if expression is false.
Ensures the truth of an expression involving one or more parameters to the calling method.
Parameters
expression
a boolean expression.
Throws
if expression is false.