public final class Preconditions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T reference)
Verifies that the given object reference is not
null. |
static java.lang.String |
checkNotNullOrEmpty(java.lang.String s)
Verifies that the given
String is not null or empty. |
public static java.lang.String checkNotNullOrEmpty(java.lang.String s)
String is not null or empty.s - the given String.String.java.lang.NullPointerException - if the given String is null.java.lang.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.java.lang.NullPointerException - if the given object reference is null.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.