public final class ArrayUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
concat(T[] sourceFirst,
T[] sourceSecond,
T[] dest)
Copies in order
sourceFirst and sourceSecond into dest. |
static <T> boolean |
contains(T[] array,
T item) |
static <T> void |
copyWithoutNulls(T[] src,
T[] dst)
Copy src array into destination and skip null values.
|
static <T> T[] |
createCopy(T[] src)
Create copy of the src array.
|
static <T> T |
getItemAtPositionOrNull(T[] array,
int position) |
public static <T> T[] createCopy(T[] src)
T - src - public static <T> void copyWithoutNulls(T[] src,
T[] dst)
src.length - getNoOfNullItems(src)T - src - source arraydst - destination. It has to have the right capacitypublic static <T> boolean contains(T[] array,
T item)
public static <T> T getItemAtPositionOrNull(T[] array,
int position)
public static <T> void concat(T[] sourceFirst,
T[] sourceSecond,
T[] dest)
sourceFirst and sourceSecond into dest.T - sourceFirst - sourceSecond - dest - Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.