public final class ArrayFactory extends Object
ArrayFactory provides factory methods for create new Array
objects| Constructor and Description |
|---|
ArrayFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
newArray(T... elements)
Factory method for create new array from the given optional elements.
|
static Integer[] |
newRangeArray(int start,
int end)
Creates a new
Integer array with the given range that is defined through start and
end. |
@SafeVarargs public static <T> T[] newArray(T... elements)
T - the generic type of the elementselements - the optional elements that will be in the returned array.public static Integer[] newRangeArray(int start, int end)
Integer array with the given range that is defined through start and
end. For instance if the start is 5 and the end is 9 the resulted array will be [5,6,7,8,9]start - The number to startend - The number to end minus oneInteger arrayCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.