public final class ArrayUtils extends Object
| 构造器和说明 |
|---|
ArrayUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T[] |
array(T... values)
create new array
|
static byte[] |
byteArray(byte... values)
create new byte array
|
static char[] |
charArray(char... values)
create new char array
|
static double[] |
doubleArray(double... values)
create new double array
|
static float[] |
floatArray(float... values)
create new float array
|
static int[] |
intArray(int... values)
create new int array
|
static long[] |
longArray(long... values)
create new long array
|
static short[] |
shortArray(short... values)
create new short array
|
static <T> T[] |
toArray(Collection<T> c,
Class<T> cls)
convert collections to array
|
public static byte[] byteArray(byte... values)
public static char[] charArray(char... values)
public static short[] shortArray(short... values)
public static int[] intArray(int... values)
public static long[] longArray(long... values)
public static float[] floatArray(float... values)
public static double[] doubleArray(double... values)
@SafeVarargs public static <T> T[] array(T... values)
public static <T> T[] toArray(Collection<T> c, Class<T> cls)
Copyright © 2015. All rights reserved.