public final class MoreArrays
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(java.lang.Object[] a,
java.lang.Object key) |
static <T> T[] |
emptyToNull(T[] array) |
static <T> boolean |
isNullOrEmpty(T[] array) |
static <T> T[] |
nullToEmpty(java.lang.Class<T> type,
T[] array) |
static int |
search(java.lang.Object[] a,
java.lang.Object key) |
static java.lang.Object[] |
wrap(java.lang.Object o) |
public static <T> T[] nullToEmpty(java.lang.Class<T> type, @Nullable T[] array)
public static <T> T[] emptyToNull(@Nullable T[] array)
public static <T> boolean isNullOrEmpty(@Nullable T[] array)
public static boolean contains(java.lang.Object[] a, @Nullable java.lang.Object key)
public static int search(java.lang.Object[] a, @Nullable java.lang.Object key)
public static java.lang.Object[] wrap(java.lang.Object o)