类 ArrayUtil
java.lang.Object
com.agentsflex.core.util.ArrayUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> T[]append(T[] first, T... second) 可变长参形式数组static <T> T[]concat(T[] first, T[] second) 合并两个数组为一个新的数组static <T> T[]concat(T[] first, T[] second, T[] third, T[]... others) static <T> booleancontains(T[] arrays, T object) 查看数组中是否包含某一个值static <T> booleanisEmpty(T[] array) 判断数组是否为空static <T> booleanisNotEmpty(T[] array) 判断数组是否不为空
-
构造器详细资料
-
ArrayUtil
private ArrayUtil()
-
-
方法详细资料
-
isEmpty
判断数组是否为空- 类型参数:
T- 数组类型- 参数:
array- 数组- 返回:
true数组为空,false数组不为空
-
isNotEmpty
判断数组是否不为空- 类型参数:
T- 数组类型- 参数:
array- 数组- 返回:
true数组不为空,false数组为空
-
concat
合并两个数组为一个新的数组- 类型参数:
T-- 参数:
first- 第一个数组second- 第二个数组- 返回:
- 新的数组
-
concat
-
append
可变长参形式数组- 类型参数:
T-- 参数:
first- 第一个数组second- 第二个数组- 返回:
- 新的数组
-
contains
查看数组中是否包含某一个值- 类型参数:
T-- 参数:
arrays- 数组object- 用于检测的值- 返回:
- true 包含
-