Package org.jvnet.jaxb.annox.util
Class Validate
- java.lang.Object
-
- org.jvnet.jaxb.annox.util.Validate
-
public class Validate extends Object
Some utils methods to validate input
-
-
Constructor Summary
Constructors Constructor Description Validate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidisTrue(boolean expression)static voidisTrue(boolean expression, String message)static voidnoNullElements(Collection<?> collection)static voidnoNullElements(Collection<?> collection, String message)static <T> T[]noNullElements(T[] array)static <T> T[]noNullElements(T[] array, String message)static voidnotEmpty(Collection collection)static <T> TnotNull(T object)static <T> TnotNull(T object, String message)
-
-
-
Method Detail
-
notNull
public static <T> T notNull(T object)
-
notNull
public static <T> T notNull(T object, String message)
-
isTrue
public static void isTrue(boolean expression)
-
isTrue
public static void isTrue(boolean expression, String message)
-
notEmpty
public static void notEmpty(Collection collection)
-
noNullElements
public static void noNullElements(Collection<?> collection)
-
noNullElements
public static void noNullElements(Collection<?> collection, String message)
-
noNullElements
public static <T> T[] noNullElements(T[] array)
-
noNullElements
public static <T> T[] noNullElements(T[] array, String message)
-
-