public final class ValidationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsWhitespace(String s)
Checks a
String for whitespace. |
static boolean |
isEmpty(Object[] a)
Determines if an array is
null or zero-length. |
static boolean |
isEmpty(String s)
Determines if a
String is null, or empty, or only contains whitespace. |
static boolean |
isSingleNonNull(Object... args)
Checks that there is only a single single non-
null argument. |
static boolean |
nullToFalse(Boolean boolVal)
Returns false if the given Boolean parameter is
null. |
public static boolean containsWhitespace(String s)
String for whitespace.s - String to validatetrue if contains whitespace and false otherwisepublic static boolean isEmpty(String s)
String is null, or empty, or only contains whitespace.s - String to validatetrue if null or empty, or only contains whitespace, and false otherwisepublic static boolean isEmpty(Object[] a)
null or zero-length.a - Array to validatetrue if null or empty, and false otherwisepublic static boolean isSingleNonNull(Object... args)
null argument.args - Argumentstrue if there is a single non-null argument, and false otherwisepublic static boolean nullToFalse(Boolean boolVal)
null.boolVal - boolean parameter to checkfalse if the parameter is null, and the parameter itself otherwiseCopyright © 2025 Open Identity Platform Community. All rights reserved.