Package io.iworkflow.gen.api
Class StringUtil
- java.lang.Object
-
- io.iworkflow.gen.api.StringUtil
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-15T15:46:39.463911-07:00[America/Los_Angeles]") public class StringUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsIgnoreCase(java.lang.String[] array, java.lang.String value)
Check if the given array contains the given value (with case-insensitive comparison).static java.lang.String
join(java.lang.String[] array, java.lang.String separator)
Join an array of strings with the given separator.static java.lang.String
join(java.util.Collection<java.lang.String> list, java.lang.String separator)
Join a list of strings with the given separator.
-
-
-
Method Detail
-
containsIgnoreCase
public static boolean containsIgnoreCase(java.lang.String[] array, java.lang.String value)
Check if the given array contains the given value (with case-insensitive comparison).- Parameters:
array
- The arrayvalue
- The value to search- Returns:
- true if the array contains the value
-
join
public static java.lang.String join(java.lang.String[] array, java.lang.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 stringsseparator
- The separator- Returns:
- the resulting string
-
join
public static java.lang.String join(java.util.Collection<java.lang.String> list, java.lang.String separator)
Join a list of strings with the given separator.- Parameters:
list
- The list of stringsseparator
- The separator- Returns:
- the resulting string
-
-