| Constructor and Description |
|---|
Tuple0() |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
head()
Always throws a
NoSuchElementException. |
boolean |
isEmpty()
Whether the
Tuple is empty. |
static Tuple0 |
of()
Creates a
Tuple0 of 0 elements. |
int |
size()
Gets the number of elements of the
Tuple. |
Tuple |
tail()
Gets a
Tuple with all the elements of this tuple skipping the first
one. |
Object[] |
toArray()
Convert this
Tuple to an Object[]. |
<T> T[] |
toArray(T[] arr)
Fill an arrat with the elements of this
Tuple. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasIterable, get, last, streampublic int size()
TupleTuple.Tuplepublic <R> R head()
NoSuchElementException.
Tuple0 has n0 elements.R - type to cast to.public Tuple tail()
Tuple with all the elements of this tuple skipping the first
one.Tuplepublic boolean isEmpty()
Tuple is empty. This is always true.truepublic Object[] toArray()
Tuple to an Object[].Object[] representation of this Tuple.public <T> T[] toArray(T[] arr)
Tuple.T - type of the provided arrayarr - the array to fileCopyright © 2021. All rights reserved.