Class Preconditions
- java.lang.Object
-
- com.coditory.sherlock.common.util.Preconditions
-
public final class Preconditions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
expectNonEmpty(String value)
static String
expectNonEmpty(String value, String message)
static <E> List<E>
expectNonEmpty(List<E> list)
static <E> List<E>
expectNonEmpty(List<E> list, String message)
static <T> T
expectNonNull(T value)
static <T> T
expectNonNull(T value, String message)
-
-
-
Method Detail
-
expectNonNull
public static <T> T expectNonNull(T value)
-
expectNonNull
public static <T> T expectNonNull(T value, String message)
-
-