public abstract class Preconditions extends Object
| Constructor and Description |
|---|
Preconditions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkEmptyString(String string,
String errorMsg)
Checks that a string is not null or empty
|
static void |
checkNotNull(Object object,
String errorMsg)
Checks that an object is not null.
|
static boolean |
hasText(String str) |
public static void checkNotNull(Object object, String errorMsg)
object - any objecterrorMsg - error messageIllegalArgumentException - if the object is nullpublic static void checkEmptyString(String string, String errorMsg)
string - any stringerrorMsg - error messageIllegalArgumentException - if the string is null or emptypublic static boolean hasText(String str)
Copyright © 2017. All rights reserved.