Module com.speedment.common.tuple
Interface Tuple0OfNullables
-
- All Superinterfaces:
BasicTuple<Optional<Object>>,TupleOfNullables
public interface Tuple0OfNullables extends TupleOfNullables
This interface defines a genericTupleOfNullablesof degree0 that can hold null values. A TupleOfNullable is type safe, immutable and thread safe. For pure non-null value elements seeTuple. For mutable tuples seeMutableTupleThisTupleOfNullableshas 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 Optional<Object>get(int index)Gets the tuple element at the given index.-
Methods inherited from interface com.speedment.common.tuple.TupleOfNullables
stream, streamOf
-
-
-
-
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<Optional<Object>>- Returns:
- the degree of the Tuple
-
get
default Optional<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<Optional<Object>>- Parameters:
index- of the element to get- Returns:
- the tuple element at the given index
-
-