Package org.eclipse.xtext.xbase.lib
Class ArrayLiterals
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.ArrayLiterals
-
@GwtCompatible public class ArrayLiterals extends java.lang.ObjectFactory methods for arrays.- Since:
- 2.4
-
-
Constructor Summary
Constructors Constructor Description ArrayLiterals()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T[]newArrayOfSize(int size)static <T> T[][]newArrayOfSize(int size0, int size1)static boolean[]newBooleanArrayOfSize(int size)static boolean[][]newBooleanArrayOfSize(int size0, int size1)static byte[]newByteArrayOfSize(int size)static byte[][]newByteArrayOfSize(int size0, int size1)static char[]newCharArrayOfSize(int size)static char[][]newCharArrayOfSize(int size0, int size1)static double[]newDoubleArrayOfSize(int size)static double[][]newDoubleArrayOfSize(int size0, int size1)static float[]newFloatArrayOfSize(int size)static float[][]newFloatArrayOfSize(int size0, int size1)static int[]newIntArrayOfSize(int size)static int[][]newIntArrayOfSize(int size0, int size1)static long[]newLongArrayOfSize(int size)static long[][]newLongArrayOfSize(int size0, int size1)static short[]newShortArrayOfSize(int size)static short[][]newShortArrayOfSize(int size0, int size1)
-
-
-
Method Detail
-
newArrayOfSize
@Pure public static <T> T[][] newArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newArrayOfSize
@Pure public static <T> T[] newArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newCharArrayOfSize
@Pure public static char[][] newCharArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newCharArrayOfSize
@Pure public static char[] newCharArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newIntArrayOfSize
@Pure public static int[][] newIntArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newIntArrayOfSize
@Pure public static int[] newIntArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newBooleanArrayOfSize
@Pure public static boolean[][] newBooleanArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newBooleanArrayOfSize
@Pure public static boolean[] newBooleanArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newShortArrayOfSize
@Pure public static short[][] newShortArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newShortArrayOfSize
@Pure public static short[] newShortArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newLongArrayOfSize
@Pure public static long[][] newLongArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newLongArrayOfSize
@Pure public static long[] newLongArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newFloatArrayOfSize
@Pure public static float[][] newFloatArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newFloatArrayOfSize
@Pure public static float[] newFloatArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newDoubleArrayOfSize
@Pure public static double[][] newDoubleArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newDoubleArrayOfSize
@Pure public static double[] newDoubleArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newByteArrayOfSize
@Pure public static byte[][] newByteArrayOfSize(int size0, int size1)
- Parameters:
size0- the first size for the array to be createdsize1- the second size for the array to be created- Returns:
- an array of the given sizes
- Since:
- 2.16
-
newByteArrayOfSize
@Pure public static byte[] newByteArrayOfSize(int size)
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
-