Package org.jvnet.jaxb.annox.util
Class Validate
java.lang.Object
org.jvnet.jaxb.annox.util.Validate
Some utils methods to validate input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidisTrue(boolean expression) static voidstatic 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> T
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
notNull
public static <T> T notNull(T object) -
notNull
-
isTrue
public static void isTrue(boolean expression) -
isTrue
-
notEmpty
-
noNullElements
-
noNullElements
-
noNullElements
public static <T> T[] noNullElements(T[] array) -
noNullElements
-