Module com.speedment.common.tuple
Package com.speedment.common.tuple
Interface Tuple7<T0,T1,T2,T3,T4,T5,T6>
-
- Type Parameters:
T0- type of element 0T1- type of element 1T2- type of element 2T3- type of element 3T4- type of element 4T5- type of element 5T6- type of element 6
- All Superinterfaces:
BasicTuple<Object>,Tuple
public interface Tuple7<T0,T1,T2,T3,T4,T5,T6> extends Tuple
This interface defines a genericTupleof degree 7 that can hold non-null values. A Tuple is type safe, immutable and thread safe. For tuples that can hold null elements seeTupleOfNullables. For mutable tuples seeMutableTupleThisTuplehas a degree of 7Generated by com.speedment.sources.pattern.tuple.TuplePattern
- Author:
- Per Minborg
- See Also:
Tuple,TupleOfNullables,MutableTuple
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intdegree()Returns the degree of the BasicTuple.default Objectget(int index)Gets the tuple element at the given index.T0get0()Returns the 0th element from this tuple.T1get1()Returns the 1st element from this tuple.T2get2()Returns the 2nd element from this tuple.T3get3()Returns the 3rd element from this tuple.T4get4()Returns the 4th element from this tuple.T5get5()Returns the 5th element from this tuple.T6get6()Returns the 6th element from this tuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter0<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T0>getter0()Returns agetterfor the 0th element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter1<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T1>getter1()Returns agetterfor the 1st element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter2<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T2>getter2()Returns agetterfor the 2nd element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter3<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T3>getter3()Returns agetterfor the 3rd element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter4<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T4>getter4()Returns agetterfor the 4th element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter5<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T5>getter5()Returns agetterfor the 5th element in theTuple.static <T0,T1,T2,T3,T4,T5,T6>
TupleGetter6<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T6>getter6()Returns agetterfor the 6th element in theTuple.
-
-
-
Method Detail
-
get0
T0 get0()
Returns the 0th element from this tuple.- Returns:
- the 0th element from this tuple.
-
get1
T1 get1()
Returns the 1st element from this tuple.- Returns:
- the 1st element from this tuple.
-
get2
T2 get2()
Returns the 2nd element from this tuple.- Returns:
- the 2nd element from this tuple.
-
get3
T3 get3()
Returns the 3rd element from this tuple.- Returns:
- the 3rd element from this tuple.
-
get4
T4 get4()
Returns the 4th element from this tuple.- Returns:
- the 4th element from this tuple.
-
get5
T5 get5()
Returns the 5th element from this tuple.- Returns:
- the 5th element from this tuple.
-
get6
T6 get6()
Returns the 6th element from this tuple.- Returns:
- the 6th element from this tuple.
-
degree
default int degree()
Description copied from interface:BasicTupleReturns the degree of the BasicTuple. For example, a Tuple2 has a degree of 2 whereas a Tuple3 has a degree of 3.- Specified by:
degreein interfaceBasicTuple<T0>- Returns:
- the degree of the Tuple
-
get
default Object get(int index)
Description copied from interface:BasicTupleGets the tuple element at the given index. For example, get(0) will return the first element and get(1) will return the second etc.- Specified by:
getin interfaceBasicTuple<T0>- Parameters:
index- of the element to get- Returns:
- the tuple element at the given index
-
getter0
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter0<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T0> getter0()
Returns agetterfor the 0th element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 0th position
-
getter1
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter1<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T1> getter1()
Returns agetterfor the 1st element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 1st position
-
getter2
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter2<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T2> getter2()
Returns agetterfor the 2nd element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 2nd position
-
getter3
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter3<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T3> getter3()
Returns agetterfor the 3rd element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 3rd position
-
getter4
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter4<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T4> getter4()
Returns agetterfor the 4th element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 4th position
-
getter5
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter5<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T5> getter5()
Returns agetterfor the 5th element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 5th position
-
getter6
static <T0,T1,T2,T3,T4,T5,T6> TupleGetter6<Tuple7<T0,T1,T2,T3,T4,T5,T6>,T6> getter6()
Returns agetterfor the 6th element in theTuple.- Type Parameters:
T0- the 0th element typeT1- the 1st element typeT2- the 2nd element typeT3- the 3rd element typeT4- the 4th element typeT5- the 5th element typeT6- the 6th element type- Returns:
- the element at the 6th position
-
-