Class Check

java.lang.Object
com.atlassian.oauth.util.Check

public final class Check extends Object
Utility to perform checks on parameters.
  • Constructor Details

    • Check

      public Check()
  • Method Details

    • notNull

      @Deprecated public static <T> T notNull(T reference, Object errorMessage)
      Deprecated.
    • notBlank

      public static String notBlank(String str, Object errorMessage)
      Checks if the string is null, empty, or contains only whitespace.
      Parameters:
      str - String to check
      errorMessage - to be used as a message in case there's an exception thrown
      Returns:
      str so it may be used
      Throws:
      NullPointerException - if str is null
      IllegalArgumentException - if str is empty or contains only whitespace