public class Validate extends Object
| Constructor and Description |
|---|
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
notBlank(String string,
String name)
Validate that an
String is not Null or empty. |
static void |
notNull(Object object,
String name)
Validate that an
Object is not Null. |
public static void notNull(Object object, String name)
Object is not Null.object - The object to validatename - the name to use in the thrown exceptionIllegalArgumentException - if object is nullpublic static void notBlank(String string, String name)
String is not Null or empty.string - The String to validatename - the name to use in the thrown exceptionIllegalArgumentException - if string is null or emptyCopyright © 2021 palindromicity. All rights reserved.