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 boolean
isBlank(String string)
Checks if a givenstring
is blank ornull
.static void
isTrue(boolean mustBeTrue, String message)
static <T> T[]
noNullElements(T[] array, String name)
static <T> T[]
notEmpty(T[] array, String name)
static <T> T
notNull(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
string
is blank ornull
.- Parameters:
string
- the String to check, may benull
- Returns:
true
if the CharSequence is null, empty or whitespace only
-
isTrue
public static void isTrue(boolean mustBeTrue, String message)
-
-