-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdegree()Returns the degree of the Tuple.Function<T,?>get(int index)Gets the mapper at the given index.
-
-
-
Method Detail
-
degree
int degree()
Returns the degree of the Tuple. For example, a Tuple2 has a degree of 2 whereas a Tuple3 has a degree of 3.- Returns:
- the degree of the Tuple
-
get
Function<T,?> get(int index)
Gets the mapper at the given index. For example, get(0) will return the first mapper and get(1) will return the second etc.- Parameters:
index- of the mapper to get- Returns:
- the mapper at the given index
- Throws:
IndexOutOfBoundsException- ifindex < 0 || index >= length()
-
-