public class Assert extends Object
| Constructor and Description |
|---|
Assert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
isTrue(boolean value,
String message)
Assert that the given boolean value is
true; otherwise, throw an IllegalArgumentException
with the given message. |
static void |
notNull(Object object,
String message)
Assert that the given
Object is not null; otherwise, throw an
IllegalArgumentException with the given message. |
public static void notNull(Object object, String message) throws IllegalArgumentException
Object is not null; otherwise, throw an
IllegalArgumentException with the given message.IllegalArgumentExceptionpublic static void isTrue(boolean value,
String message)
true; otherwise, throw an IllegalArgumentException
with the given message.Copyright © 2014 JBoss by Red Hat. All rights reserved.