Package com.okta.sdk.resource.client
Class StringUtil
java.lang.Object
com.okta.sdk.resource.client.StringUtil
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class StringUtil
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsIgnoreCase
(String[] array, String value) Check if the given array contains the given value (with case-insensitive comparison).static String
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.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
containsIgnoreCase
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
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
Join a list of strings with the given separator.- Parameters:
list
- The list of stringsseparator
- The separator- Returns:
- the resulting string
-