public class Validation extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlank(String string)
Checks if a given
string is blank or null . |
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) |
public static <T> T notNull(T instance, String name)
public static <T> T[] notEmpty(T[] array, String name)
public static <T> T[] noNullElements(T[] array, String name)
public static boolean isBlank(String string)
Checks if a given string
is blank or null
.
string
- the String to check, may be null
true
if the CharSequence is null, empty or whitespace onlypublic static void isTrue(boolean mustBeTrue, String message)
Copyright © 2018–2021 SmallRye. All rights reserved.