public class Arguments extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean test,
String msg,
Object... params)
Checks that
test is not null. |
public static void checkArgument(boolean test,
String msg,
Object... params)
test is not null.
The error message is formatted with String.format(java.util.Locale, String, Object...) for the Locale.ROOT locale if params is not empty.
test - tested expressionmsg - error messageparams - error message parametersIllegalArgumentException - if test is nullCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.