org.keycloak.common.util

## Class ObjectUtil

- java.lang.Object
- - org.keycloak.common.util.ObjectUtil

-     public class ObjectUtil
      extends Object

  Author:
    Marek Posolda

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `capitalize(String str)`
    `static boolean` | `isBlank(CharSequence cs)` Forked from apache-commons StringUtils
    `static boolean` | `isEqualOrBothNull(Object str1, Object str2)`

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

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

- - ### Method Detail

    - #### isEqualOrBothNull

          public static boolean isEqualOrBothNull(Object str1,
                                                  Object str2)

      Parameters:
        `str1` -
        `str2` -
      Returns:
        true if both strings are null or equal

    - #### capitalize

          public static String capitalize(String str)

    - #### isBlank

          public static boolean isBlank(CharSequence cs)

      Forked from apache-commons StringUtils

      Checks if a CharSequence is whitespace, empty ("") or null.

           ObjectUtil.isBlank(null)      = true
           ObjectUtil.isBlank("")        = true
           ObjectUtil.isBlank(" ")       = true
           ObjectUtil.isBlank("bob")     = false
           ObjectUtil.isBlank("  bob  ") = false

      Parameters:
        `cs` -
      Returns:
        `true` if the CharSequence is null, empty or whitespace

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