public class ArrayUtils extends Object
| Constructor and Description |
|---|
ArrayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
append(T[] a,
T o)
appends an object to an array
|
static boolean |
empty(byte[] a) |
static boolean |
empty(char[] a) |
static boolean |
empty(double[] a) |
static boolean |
empty(float[] a) |
static boolean |
empty(int[] a) |
static boolean |
empty(long[] a) |
static boolean |
empty(short[] a) |
static <T> boolean |
empty(T[] a) |
static boolean |
equals(byte[] a,
byte[] a2,
int off,
int len) |
static byte |
first(byte[] a) |
static char |
first(char[] a) |
static double |
first(double[] a) |
static float |
first(float[] a) |
static int |
first(int[] a) |
static long |
first(long[] a) |
static short |
first(short[] a) |
static <T> T |
first(T[] a) |
static <T> Iterable<T> |
iterable(T... a) |
static <T> Iterator<T> |
iterator(T... a) |
static byte |
last(byte[] a) |
static char |
last(char[] a) |
static double |
last(double[] a) |
static float |
last(float[] a) |
static int |
last(int[] a) |
static long |
last(long[] a) |
static short |
last(short[] a) |
static <T> T |
last(T[] a) |
static int |
length(byte[] a) |
static int |
length(char[] a) |
static int |
length(double[] a) |
static int |
length(float[] a) |
static int |
length(int[] a) |
static int |
length(long[] a) |
static int |
length(short[] a) |
static <T> int |
length(T[] a) |
static Iterable<Object> |
toIterable(Object array) |
public static boolean equals(byte[] a,
byte[] a2,
int off,
int len)
public static <T> boolean empty(T[] a)
true if a is not null and a.length > 0public static boolean empty(byte[] a)
true if a is not null and a.length > 0public static boolean empty(int[] a)
true if a is not null and a.length > 0public static boolean empty(short[] a)
true if a is not null and a.length > 0public static boolean empty(long[] a)
true if a is not null and a.length > 0public static boolean empty(float[] a)
true if a is not null and a.length > 0public static boolean empty(double[] a)
true if a is not null and a.length > 0public static boolean empty(char[] a)
true if a is not null and a.length > 0public static <T> T first(T[] a)
empty(Object[])public static byte first(byte[] a)
empty(Object[])public static int first(int[] a)
empty(Object[])public static short first(short[] a)
empty(Object[])public static long first(long[] a)
empty(Object[])public static float first(float[] a)
empty(Object[])public static double first(double[] a)
empty(Object[])public static char first(char[] a)
empty(Object[])public static <T> T last(T[] a)
empty(Object[])public static byte last(byte[] a)
empty(Object[])public static int last(int[] a)
empty(Object[])public static short last(short[] a)
empty(Object[])public static long last(long[] a)
empty(Object[])public static float last(float[] a)
empty(Object[])public static double last(double[] a)
empty(Object[])public static char last(char[] a)
empty(Object[])public static <T> int length(T[] a)
public static int length(byte[] a)
public static int length(int[] a)
public static int length(short[] a)
public static int length(long[] a)
public static int length(float[] a)
public static int length(double[] a)
public static int length(char[] a)
public static <T> Iterable<T> iterable(T... a)
public static <T> Iterator<T> iterator(T... a)
public static <T> T[] append(T[] a,
T o)
T - a - o - Copyright © 2014 Molindo GmbH. All Rights Reserved.