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 void |
checkValidOAuthCallback(String url,
String errorMsg)
Deprecated.
will be just removed. not used in ScribeJava
|
static void |
checkValidUrl(String url,
String errorMsg)
Deprecated.
will be just removed. not used in ScribeJava
|
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)
@Deprecated public static void checkValidUrl(String url, String errorMsg)
url - any stringerrorMsg - error message@Deprecated public static void checkValidOAuthCallback(String url, String errorMsg)
url - any stringerrorMsg - error messageCopyright © 2017. All rights reserved.