Package com.atlassian.oauth.util
Class Check
java.lang.Object
com.atlassian.oauth.util.Check
Utility to perform checks on parameters.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Check
public Check()
-
-
Method Details
-
notNull
Deprecated. -
notBlank
Checks if the string isnull, empty, or contains only whitespace.- Parameters:
str-Stringto checkerrorMessage- to be used as a message in case there's an exception thrown- Returns:
strso it may be used- Throws:
NullPointerException- ifstrisnullIllegalArgumentException- ifstris empty or contains only whitespace
-
Objects.requireNonNull(T)