public class ArrayUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Object[] |
EMPTY_OBJECT_ARRAY
An empty object array.
|
| Constructor and Description |
|---|
ArrayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
concat(byte[] a,
byte... b)
Concatenate two byte arrays.
|
static <T> T[] |
concat(T[] a,
T... b)
Concatenate two arrays.
|
static boolean |
isEmpty(Object[] array)
Whether the given array is empty.
|
static boolean |
isNotEmpty(Object[] array)
Whether the given array is not empty.
|
static String |
toString(Object[] array)
Produce a string representation of the given array.
|
static String |
toString(String delimiter,
Object[] array)
Produce a string representation of the given array.
|
public static final Object[] EMPTY_OBJECT_ARRAY
public static <T> T[] concat(T[] a,
T... b)
T - The array typea - The first arrayb - The second arraypublic static byte[] concat(byte[] a,
byte... b)
a - The first arrayb - The second arraypublic static boolean isEmpty(Object[] array)
array - The arraypublic static boolean isNotEmpty(Object[] array)
array - The arraypublic static String toString(@Nullable Object[] array)
array - The array