| 构造器和说明 |
|---|
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> boolean |
contains(T[] arrays,
T object)
查看数组中是否包含某一个值
|
static <T> boolean |
isEmpty(T[] array)
判断数组是否为空
|
static <T> boolean |
isNotEmpty(T[] array)
判断数组是否不为空
|
public ArrayUtil()
public static <T> boolean isEmpty(T[] array)
T - array - public static <T> boolean isNotEmpty(T[] array)
T - array - public static <T> T[] concat(T[] first, T[] second)
T - first - 第一个数组second - 第二个数组public static <T> T[] concat(T[] first, T[] second, T[] third, T[]... others)
@SafeVarargs public static <T> T[] append(T[] first, T... second)
T - first - 第一个数组second - 第二个数组public static <T> boolean contains(T[] arrays, T object)
T - arrays - 数组object - 用于检测的值Copyright © 2023. All rights reserved.