Class StringUtil


  • public class StringUtil
    extends Object
    • Constructor Detail

      • StringUtil

        public StringUtil()
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(String str)
      • firstToUpper

        public static String firstToUpper​(String str)
      • firstToLower

        public static String firstToLower​(String str)
      • areEqual

        public static boolean areEqual​(String s1,
                                       String s2)
      • isOneOf

        public static boolean isOneOf​(String target,
                                      String... candidates)
      • escapeHtml

        public static String escapeHtml​(String string)
      • stripHashCodes

        public static String stripHashCodes​(Object obj)
        Parameters:
        obj -
        Returns:
        Since:
        1.6
      • inputStreamToString

        public static String inputStreamToString​(InputStream inputStream)
        Parameters:
        inputStream -
        Returns:
        Since:
        2.2