public final class ArrayUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(String[] array,
String valueToFind) |
static int |
indexOf(String[] array,
String valueToFind,
int startIndex) |
static boolean |
isEmpty(Object[] array)
Checks if the array is null or empty.
|
static boolean |
isNotEmpty(Object[] array)
Checks if the array is not null or empty.
|
static <T> T[] |
of(T... values)
Convert from variable arguments to array
|
public static boolean isEmpty(Object[] array)
Checks if the array is null or empty.
array - th array to checktrue if the array is null or empty.public static boolean isNotEmpty(Object[] array)
Checks if the array is not null or empty.
array - th array to checktrue if the array is not null or empty.public static <T> T[] of(T... values)
T - The classvalues - variable argumentsCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.