java.lang.Object
org.eclipse.xtext.xbase.lib.ArrayLiterals
Factory methods for arrays.
- Since:
- 2.4
- Author:
- Sven Efftinge - Initial contribution and API, Stephane Galland - Add operations on 2-dimension arrays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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)
-
Constructor Details
-
ArrayLiterals
public ArrayLiterals()
-
-
Method Details
-
newArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newCharArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newIntArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newBooleanArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newShortArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newLongArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newFloatArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newDoubleArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-
newByteArrayOfSize
- 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
- Parameters:
size- the size for the array to be created- Returns:
- an array of the given size
- Since:
- 2.4
-