| Modifier and Type | Method and Description |
|---|---|
default X[] |
asArray(Class<X> cls)
Copy the elements of this Tuple into a newly created array
|
default List<X> |
asList()
Convert to a List
|
default void |
copyInto(X[] array)
Copy the elements of this Tuple into the array
|
default void |
copyInto(X[] array,
int start)
Copy the elements of this Tuple into the array
|
default void |
copyInto(X[] array,
int start,
int length)
Copy the elements of this Tuple into the array
|
default void |
forEach(Consumer<? super X> action)
forEach
|
X |
get(int i)
Get the i'th element, for i in the range 0 to len()-1
|
default boolean |
isEmpty()
Return true if this is a zero-length tuple
|
default Iterator<X> |
iterator()
Iterable
|
int |
len()
length : elements are 0 to len()-1
|
default Stream<X> |
stream()
stream
|
spliteratorX get(int i)
IndexOutOfBoundsException - for i out of rangeint len()
default boolean isEmpty()
default void copyInto(X[] array)
default void copyInto(X[] array, int start)
default void copyInto(X[] array, int start, int length)
Licenced under the Apache License, Version 2.0