Package de.danielbechler.util
Class Assert
java.lang.Object
de.danielbechler.util.Assert
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidequalTypesOrNull(Object... objects) static voidEnsures that the givenvaluecontains characters.static voidSame ashasText(String, String).static voidnotEmpty(Collection<?> collection, String name) static void
-
Method Details
-
equalTypesOrNull
-
notNull
-
notEmpty
-
notEmpty
Same ashasText(String, String).- Throws:
IllegalArgumentException- See Also:
-
hasText
Ensures that the givenvaluecontains characters.- Parameters:
value- The value to check.name- The name of the variable (used for the exception message).- Throws:
IllegalArgumentException- If the given value isnullor doesn't contain any non-whitespace characters.
-