Class StringUtil

  • All Implemented Interfaces:

    @Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") 
    public class StringUtil
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtil()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean containsIgnoreCase(Array<String> array, String value) Check if the given array contains the given value (with case-insensitive comparison).
      static String join(Array<String> array, String separator) Join an array of strings with the given separator.
      static String join(Collection<String> list, String separator) Join a list of strings with the given separator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringUtil

        StringUtil()
    • Method Detail

      • containsIgnoreCase

         static boolean containsIgnoreCase(Array<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

         static String join(Array<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

      • join

         static String join(Collection<String> list, String separator)

        Join a list of strings with the given separator.

        Parameters:
        list - The list of strings
        separator - The separator
        Returns:

        the resulting string