Class StringUtils

java.lang.Object
com.nimbusds.oauth2.sdk.util.StringUtils

public final class StringUtils extends Object
String utilities. Replicates Apache Commons Lang 3.
  • Method Details

    • isBlank

      public static boolean isBlank(CharSequence cs)
      Returns true if the specified char sequence is all blank, empty or null.
      Parameters:
      cs - The char sequence. May be null.
      Returns:
      true if the specified char sequence is all blank, empty or null, else false.
    • isNotBlank

      public static boolean isNotBlank(CharSequence cs)
      Returns true if the specified char sequence is not all blank, not empty and not null.
      Parameters:
      cs - The char sequence. May be null.
      Returns:
      true if the specified char sequence is not all blank, not empty and not null, else false.
    • isAlpha

      public static boolean isAlpha(CharSequence cs)
      Returns true if the specified char sequence is all alphabetic letters.
      Parameters:
      cs - The char sequence. May be null.
      Returns:
      true if the specified char sequence is all alphabetic letters, empty or null, else false.
    • isNumeric

      public static boolean isNumeric(CharSequence cs)
      Returns true if the specified char sequence is all numeric letters.
      Parameters:
      cs - The char sequence. May be null.
      Returns:
      true if the specified char sequence is all numeric letters, empty or null, else false.