public abstract class dbc extends Object
| Constructor and Description |
|---|
dbc() |
| Modifier and Type | Method and Description |
|---|---|
static void |
precondition(boolean assertion,
String format,
Object... params)
Enforces a state precondition, throwing an IllegalArgumentException if
the assertion fails.
|
static void |
state(boolean assertion,
String format,
Object... params)
Enforces a state precondition, throwing an IllegalStateException if the
assertion fails.
|
public static void precondition(boolean assertion,
String format,
Object... params)
assertion - the assertion to be enforcedformat - the exception message format stringparams - the exception message parametersIllegalArgumentException - if the assertion failspublic static void state(boolean assertion,
String format,
Object... params)
assertion - the assertion to be enforcedformat - the exception message format stringparams - the exception message parametersIllegalStateException - if the assertion failsCopyright © 2016. All rights reserved.