public class ArrayUtils
extends java.lang.Object
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
concat(byte[] left,
byte[] right)
Concat two byte array.
|
static <T> boolean |
isEmpty(T[] arrays)
Check if array is empty.
|
static <T> int |
length(T[] arrays)
Return array's length.
|
public static <T> boolean isEmpty(T[] arrays)
return false
unless array's length is 0
T
- array element's typearrays
- array to checkpublic static <T> int length(T[] arrays)
return 0 if array is null
T
- array element's typearrays
- array to checkpublic static byte[] concat(byte[] left, byte[] right)
left
- left arrayright
- right array