org.keycloak.saml.common.util

## Class StringUtil

- java.lang.Object
- - org.keycloak.saml.common.util.StringUtil

-     public class StringUtil
      extends Object

  Utility dealing with Strings
  Since:
    Oct 21, 2009
  Author:
    Anil.Saldhana@redhat.com

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StringUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `isNotNull(String str)` Check whether the passed string is null or empty
    `static boolean` | `isNullOrEmpty(String str)` Check whether the string is null or empty
    `static void` | `match(String first, String second)` Match two strings else throw a `RuntimeException`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StringUtil

          public StringUtil()

  - ### Method Detail

    - #### isNotNull

          public static boolean isNotNull(String str)

      Check whether the passed string is null or empty
      Parameters:
        `str` -
      Returns:

    - #### isNullOrEmpty

          public static boolean isNullOrEmpty(String str)

      Check whether the string is null or empty
      Parameters:
        `str` -
      Returns:

    - #### match

          public static void match(String first,
                                   String second)

      Match two strings else throw a `RuntimeException`
      Parameters:
        `first` -
        `second` -

Copyright © 2020 JBoss by Red Hat. All rights reserved.