public final class Preconditions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T reference)
Verifies that the given object reference is not
null. |
static String |
checkNotNullOrEmpty(String s)
Verifies that the given
String is not null or empty. |
public static String checkNotNullOrEmpty(String s)
String is not null or empty.s - the given String.String.NullPointerException - if the given String is null.IllegalArgumentException - if the given String is empty.public static <T> T checkNotNull(T reference)
null.reference - the given object reference.null reference that was validated.NullPointerException - if the given object reference is null.Copyright © 2013 AssertJ. All Rights Reserved.