Class ObjectUtil

    • 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