类 StringUtil
- java.lang.Object
-
- com.alibaba.graphscope.interactive.openapi.StringUtil
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class StringUtil extends Object
-
-
构造器概要
构造器 构造器 说明 StringUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleancontainsIgnoreCase(String[] array, String value)Check if the given array contains the given value (with case-insensitive comparison).static Stringjoin(String[] array, String separator)Join an array of strings with the given separator.static Stringjoin(Collection<String> list, String separator)Join a list of strings with the given separator.
-
-
-
方法详细资料
-
containsIgnoreCase
public static boolean containsIgnoreCase(String[] array, String value)
Check if the given array contains the given value (with case-insensitive comparison).- 参数:
array- The arrayvalue- 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 stringsseparator- The separator- 返回:
- the resulting string
-
join
public static String join(Collection<String> list, String separator)
Join a list of strings with the given separator.- 参数:
list- The list of stringsseparator- The separator- 返回:
- the resulting string
-
-