Class StringUtil

  • public class StringUtil
    extends Object
    • Constructor Detail

      • StringUtil

        public StringUtil()
    • Method Detail

      • containsIgnoreCase

        public static boolean containsIgnoreCase​(String[] array,
                                                 String value)
        Check if the given array contains the given value (with case-insensitive comparison).
        array - The array
        value - The value to search
        true if the array contains the value
      • join

        public static String join​(String[] array,
                                  String separator)
        Join an array of strings with the given separator.

        Note: This might be replaced by utility method from commons-lang or guava someday if one of those libraries is added as dependency.

        array - The array of strings
        separator - The separator
        the resulting string