public final class Arrays
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Functions.Function1<T[],java.util.List<T>> |
asList()
Returns the array as a list
|
static <T> Functions.Function1<T[],ReifiedList<T>> |
asReifiedList()
Returns the array as a reified list
|
static <T> Functions.Function1<T[],T> |
getElement(int _index)
Returns the element at specified index
|
static <T> Functions.Function1<T[],T> |
getElementNulling(int _index)
Returns the element at specified index, but if this is not possible, it returns null
|
static <T> Functions.Function1<T[],T> |
getElementSafe(int _index,
T _defaultValue)
Returns the element at specified index, but if this is not possible, it returns the specified default value
|
static <T> Functions.Function1<T[],java.lang.Integer> |
length()
Returns the length of the array
|
static <T> Functions.Function1<T[],T[]> |
subArray(int _startIndex,
int _endIndex)
Returns a portion of the array
|
static <T> Functions.Function1<T[],java.lang.String> |
toStringify()
Returns the string representation of the array
|
static <T> Functions.Function1<T[],java.lang.String> |
toStringifyDeep()
Returns the deep string representation of the array
|
public static <T> Functions.Function1<T[],java.util.List<T>> asList()
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of boundspublic static <T> Functions.Function1<T[],ReifiedList<T>> asReifiedList()
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of boundspublic static <T> Functions.Function1<T[],T> getElement(int _index)
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of boundspublic static <T> Functions.Function1<T[],T> getElementNulling(int _index)
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of boundspublic static <T> Functions.Function1<T[],T> getElementSafe(int _index, T _defaultValue)
public static <T> Functions.Function1<T[],java.lang.Integer> length()
java.lang.NullPointerException
- An argument is nullpublic static <T> Functions.Function1<T[],T[]> subArray(int _startIndex, int _endIndex)
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- An argument is nullpublic static <T> Functions.Function1<T[],java.lang.String> toStringify()
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of boundspublic static <T> Functions.Function1<T[],java.lang.String> toStringifyDeep()
java.lang.NullPointerException
- An argument is nulljava.lang.ArrayIndexOutOfBoundsException
- The index is out of bounds