public final class Checks extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
ensure(boolean condition,
String errorMessage)
Throws a GrammarException if the given condition is not met.
|
static void |
ensure(boolean condition,
String errorMessageFormat,
Object... errorMessageArgs)
Throws a GrammarException if the given condition is not met.
|
public static void ensure(boolean condition,
String errorMessageFormat,
Object... errorMessageArgs)
condition - the conditionerrorMessageFormat - the error message formaterrorMessageArgs - the error message argumentspublic static void ensure(boolean condition,
String errorMessage)
condition - the conditionerrorMessage - the error messageCopyright © 2019. All rights reserved.