public final class ArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayContainsNulls(Object[] array) |
static boolean |
arraysEqual(Object array1,
Object array2) |
static <T> T[] |
newArray(Class<T> theClass,
int numItems) |
static <T> T[] |
newArray(T[] items,
int startIndex,
int numItems)
Create a new array from the original.
|
static <T> T[] |
newArray(T[] items,
T item)
Create a new array consisting of an original array, and a single new item.
|
static <T> T[] |
newArray(T[] items1,
T[] items2)
Create a new array consisting of originals and new.
|
public static boolean arrayContainsNulls(Object[] array)
public static <T> T[] newArray(Class<T> theClass, int numItems)
public static <T> T[] newArray(T[] items,
int startIndex,
int numItems)
items - the original arraystartIndex - index of the first itemnumItems - public static <T> T[] newArray(T[] items1,
T[] items2)
items1 - 1st arrayitems2 - 2nd arraypublic static <T> T[] newArray(T[] items,
T item)
items - an arrayitem - an item to appendCopyright © 2019. All rights reserved.