public final class GridArrays extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearTail(Object[] arr,
int fromIdx)
Nullify array elements from the given index until the first
null element
(assuming that after the first null tail is already cleared). |
static long[] |
remove(long[] arr,
int idx) |
static <T> T[] |
remove(T[] arr,
int idx) |
static <T> T[] |
set(T[] arr,
int idx,
T o)
Set element to the array at the given index.
|
public static <T> T[] set(T[] arr, int idx, T o)
arr
- Array.idx
- Index.o
- Object.public static <T> T[] remove(T[] arr, int idx)
arr
- Array.idx
- Index to remove.public static long[] remove(long[] arr, int idx)
arr
- Array.idx
- Index to remove.public static void clearTail(Object[] arr, int fromIdx)
null
element
(assuming that after the first null
tail is already cleared).arr
- Array.fromIdx
- From index (including).
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017