Class Validation
- java.lang.Object
-
- io.smallrye.reactive.messaging.helpers.Validation
-
public class Validation extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBlank(String string)Checks if a givenstringis blank ornull.static voidisTrue(boolean mustBeTrue, String message)static <T> T[]noNullElements(T[] array, String name)static <T> T[]notEmpty(T[] array, String name)static <T> TnotNull(T instance, String name)
-
-
-
Method Detail
-
notNull
public static <T> T notNull(T instance, String name)
-
notEmpty
public static <T> T[] notEmpty(T[] array, String name)
-
noNullElements
public static <T> T[] noNullElements(T[] array, String name)
-
isBlank
public static boolean isBlank(String string)
Checks if a given
stringis blank ornull.- Parameters:
string- the String to check, may benull- Returns:
trueif the CharSequence is null, empty or whitespace only
-
isTrue
public static void isTrue(boolean mustBeTrue, String message)
-
-