public final class Preconditions extends Object
| Constructor and Description |
|---|
Preconditions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmptyString(String string) |
static void |
notEmptyString(String string,
String errorMsg)
Checks that a string is not null or empty
|
static void |
notNull(Object object,
String errorMsg)
Checks that an object is not null.
|
public static void notNull(Object object, String errorMsg)
object - any objecterrorMsg - error messageIllegalArgumentException - if the object is nullpublic static void notEmptyString(String string, String errorMsg)
string - any stringerrorMsg - error messageIllegalArgumentException - if the string is null or emptypublic static boolean isEmptyString(String string)
string - Copyright © 2014 iSuper.org. All Rights Reserved.