| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the array entry type T> T[] | Returns: new array with contents of both arrays, or null if both arrays are nullAn array to add to (or null) array1, T[] An array to add to (or null) array2)Add arrays |
| public static < the array entry type T> T[] | Returns: new array with contents of array plus itemThe array to add to (or null) array, T The item to add item, Class<?> The type of the array (in case of null array) type)Add element to an array |
| public static < the array entry type E> List | Returns: A new modifiable list initialised with the elements fromarray.Any array of object array)
|
| public static < the array entry type T> T[] | Returns: new array with contents of array plus itemThe item to add item, T[] The array to add to (or null) array, Class<?> The type of the array (in case of null array) type)Add element to the start of an array |
| public static <T> T[] | |
| public static <T> T[] |
| ArrayUtil | back to summary |
|---|---|
| private ArrayUtil() | |
| add | back to summary |
|---|---|
| public static <T> T[] add(T[] array1, T[] array2) Add arrays
| |
| addToArray | back to summary |
|---|---|
| public static <T> T[] addToArray(T[] array, T item, Class<?> type) Add element to an array
| |
| asMutableList | back to summary |
|---|---|
public static <E> List
| |
| prependToArray | back to summary |
|---|---|
| public static <T> T[] prependToArray(T item, T[] array, Class<?> type) Add element to the start of an array
| |
| removeFromArray | back to summary |
|---|---|
| public static <T> T[] removeFromArray(T[] array, Object item) | |
| removeNulls | back to summary |
|---|---|
| public static <T> T[] removeNulls(T[] array) | |