public class IntArrayUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
EMPTY_ARRAY |
Constructor and Description |
---|
IntArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static int[] |
append(int[] array,
int value) |
static boolean |
compareParentKey(int[] key,
int[] parentKey) |
static int[] |
copy(int[] src) |
static int[] |
getParentPath(int[] path) |
static int[] |
readArray(DataInput input) |
static int[] |
readOptionalArray(DataInput input) |
static int[] |
toArray(Collection<Integer> collection) |
static Integer[] |
toBoxedArray(Collection<Integer> collection) |
static Iterator<Integer> |
toIterator(int[] array) |
static void |
writeArray(int[] ints,
DataOutput output) |
static void |
writeOptionalArray(int[] ints,
DataOutput output) |
public static int[] getParentPath(int[] path)
public static void writeOptionalArray(int[] ints, DataOutput output) throws IOException
IOException
public static void writeArray(int[] ints, DataOutput output) throws IOException
IOException
public static int[] readOptionalArray(DataInput input) throws IOException
IOException
public static int[] readArray(DataInput input) throws IOException
IOException
public static int[] append(int[] array, int value)
public static int[] copy(int[] src)
public static int[] toArray(Collection<Integer> collection)
public static Integer[] toBoxedArray(Collection<Integer> collection)
public static boolean compareParentKey(int[] key, int[] parentKey)
Copyright © 2005–2018. All rights reserved.