-
- All Superinterfaces:
BasicTuple<Object>,Tuple
public interface Tuple0 extends Tuple
This interface defines a genericTupleof degree 0 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 0Generated by com.speedment.sources.pattern.tuple.TuplePattern
- Author:
- Per Minborg
- See Also:
Tuple,TupleOfNullables,MutableTuple
-
-
Method Summary
All Methods Instance 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.
-
-
-
Method Detail
-
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<Object>- 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<Object>- Parameters:
index- of the element to get- Returns:
- the tuple element at the given index
-
-