public class Preconditions extends Object
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)
Checks that a URL is a valid OAuth callback
|
static void |
checkValidUrl(String url,
String errorMsg)
Checks that a URL is valid
|
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 void checkValidUrl(String url, String errorMsg)
url
- any stringerrorMsg
- error messageCopyright © 2012-2013. All Rights Reserved.