类 ArrayUtils
- java.lang.Object
-
- org.apache.dubbo.common.utils.ArrayUtils
-
public final class ArrayUtils extends Object
Contains some methods to check array.
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleancontains(String[] array, String valueToFind)static intindexOf(String[] array, String valueToFind, int startIndex)static booleanisEmpty(Object[] array)Checks if the array is null or empty.static booleanisNotEmpty(Object[] array)Checks if the array is not null or empty.static <T> T[]of(T... values)Convert from variable arguments to array
-
-
-
方法详细资料
-
isEmpty
public static boolean isEmpty(Object[] array)
Checks if the array is null or empty.
- 参数:
array- th array to check- 返回:
trueif the array is null or empty.
-
isNotEmpty
public static boolean isNotEmpty(Object[] array)
Checks if the array is not null or empty.
- 参数:
array- th array to check- 返回:
trueif the array is not null or empty.
-
of
public static <T> T[] of(T... values)
Convert from variable arguments to array- 类型参数:
T- The class- 参数:
values- variable arguments- 返回:
- array
- 从以下版本开始:
- 2.7.9
-
-