public final class ArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
concat(boolean[]... objs) |
static byte[] |
concat(byte[]... objs) |
static char[] |
concat(char[]... objs) |
static double[] |
concat(double[]... objs) |
static float[] |
concat(float[]... objs) |
static int[] |
concat(int[]... objs) |
static long[] |
concat(long[]... objs) |
static short[] |
concat(short[]... objs) |
static <T> T[] |
concat(T[]... objs)
Concatenates all the passed parameters.
|
static <T> boolean |
contains(T[] array,
T value) |
static boolean |
isArray(Object o)
Determines if the passed object is of type array.
|
static void |
reverse(boolean[] arr) |
static void |
reverse(byte[] arr) |
static void |
reverse(char[] arr) |
static void |
reverse(double[] arr) |
static void |
reverse(float[] arr) |
static void |
reverse(int[] arr) |
static void |
reverse(long[] arr) |
static void |
reverse(short[] arr) |
static <T> void |
reverse(T[] arr)
Reverses the contents of the array.
|
public static <T> boolean contains(T[] array,
T value)
public static boolean isArray(Object o) throws NullPointerException
o - The object to determine if it is an array.NullPointerException - when the passed object is null.public static <T> T[] concat(T[]... objs)
T - objs - public static short[] concat(short[]... objs)
public static int[] concat(int[]... objs)
public static long[] concat(long[]... objs)
public static byte[] concat(byte[]... objs)
public static char[] concat(char[]... objs)
public static float[] concat(float[]... objs)
public static double[] concat(double[]... objs)
public static boolean[] concat(boolean[]... objs)
public static <T> void reverse(T[] arr)
T - arr - The input array of objects.public static void reverse(boolean[] arr)
public static void reverse(byte[] arr)
public static void reverse(char[] arr)
public static void reverse(short[] arr)
public static void reverse(int[] arr)
public static void reverse(long[] arr)
public static void reverse(float[] arr)
public static void reverse(double[] arr)
Copyright © 2014. All rights reserved.