@GwtCompatible
public class ArrayLiterals
extends java.lang.Object
Constructor and Description |
---|
ArrayLiterals() |
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
newArrayOfSize(int size) |
static boolean[] |
newBooleanArrayOfSize(int size) |
static byte[] |
newByteArrayOfSize(int size) |
static char[] |
newCharArrayOfSize(int size) |
static double[] |
newDoubleArrayOfSize(int size) |
static float[] |
newFloatArrayOfSize(int size) |
static int[] |
newIntArrayOfSize(int size) |
static long[] |
newLongArrayOfSize(int size) |
static short[] |
newShortArrayOfSize(int size) |
@Pure public static <T> T[] newArrayOfSize(int size)
size
- the size for the array to be created@Pure public static char[] newCharArrayOfSize(int size)
size
- the size for the array to be created@Pure public static int[] newIntArrayOfSize(int size)
size
- the size for the array to be created@Pure public static boolean[] newBooleanArrayOfSize(int size)
size
- the size for the array to be created@Pure public static short[] newShortArrayOfSize(int size)
size
- the size for the array to be created@Pure public static long[] newLongArrayOfSize(int size)
size
- the size for the array to be created@Pure public static float[] newFloatArrayOfSize(int size)
size
- the size for the array to be created@Pure public static double[] newDoubleArrayOfSize(int size)
size
- the size for the array to be created@Pure public static byte[] newByteArrayOfSize(int size)
size
- the size for the array to be created