public final class ArrayUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static void | boundsCheck(int capacity,
           int index,
           int length)Bounds check when copying to/from a buffer | 
| static <T> void | concat(T[] sourceFirst,
      T[] sourceSecond,
      T[] dest)Copies in order  sourceFirstandsourceSecondintodest. | 
| 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 - public static void boundsCheck(int capacity,
                               int index,
                               int length)
capacity - capacity of the bufferindex - index of copying will start from/tolength - length of the buffer that will be read/writenCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.