Class StringUtil

java.lang.Object
org.apache.nifi.api.toolkit.StringUtil

@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen", date="2023-11-22T19:25:26.907436939-06:00[America/Chicago]") public class StringUtil extends Object
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • containsIgnoreCase

      public static boolean containsIgnoreCase(String[] array, String value)
      Check if the given array contains the given value (with case-insensitive comparison).
      Parameters:
      array - The array
      value - The value to search
      Returns:
      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.

      Parameters:
      array - The array of strings
      separator - The separator
      Returns:
      the resulting string