-
- All Superinterfaces:
BasicTuple<Optional<Object>>
- All Known Subinterfaces:
Tuple0OfNullables,Tuple10OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>,Tuple11OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>,Tuple12OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>,Tuple13OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>,Tuple14OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>,Tuple15OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>,Tuple16OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>,Tuple17OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>,Tuple18OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>,Tuple19OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>,Tuple1OfNullables<T0>,Tuple20OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>,Tuple21OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>,Tuple22OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>,Tuple23OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>,Tuple2OfNullables<T0,T1>,Tuple3OfNullables<T0,T1,T2>,Tuple4OfNullables<T0,T1,T2,T3>,Tuple5OfNullables<T0,T1,T2,T3,T4>,Tuple6OfNullables<T0,T1,T2,T3,T4,T5>,Tuple7OfNullables<T0,T1,T2,T3,T4,T5,T6>,Tuple8OfNullables<T0,T1,T2,T3,T4,T5,T6,T7>,Tuple9OfNullables<T0,T1,T2,T3,T4,T5,T6,T7,T8>
public interface TupleOfNullables extends BasicTuple<Optional<Object>>
This interface defines a generic Tuple of any order that can hold null values. A Tuple is type safe, immutable and thread safe. For pure non-null value elements seeTuple- Author:
- pemi
- See Also:
Tuple
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static <TUPLE extends TupleOfNullables,R>
TupleGetter<TUPLE,R>getter(int index)Returns a getter method for the specified ordinal element.default Stream<Optional<Object>>stream()Returns aStreamof all values for this Tuple.default <T> Stream<T>streamOf(Class<T> clazz)Returns aStreamof all values for this Tuple of the given class.-
Methods inherited from interface com.speedment.common.tuple.BasicTuple
degree, get
-
-
-
-
Method Detail
-
stream
default Stream<Optional<Object>> stream()
Returns aStreamof all values for this Tuple. If sequential, the Stream will start with the 0:th tuple and progress upwards.- Returns:
- a
Streamof all values for this Tuple
-
streamOf
default <T> Stream<T> streamOf(Class<T> clazz)
Description copied from interface:BasicTupleReturns aStreamof all values for this Tuple of the given class. I.e. all non-null members of a Tuple that can be cast to the given class are included in the Stream. If sequential, the Stream will start with the 0:th tuple and progress upwards.- Specified by:
streamOfin interfaceBasicTuple<Optional<Object>>- Type Parameters:
T- The type of stream- Parameters:
clazz- The class of the type of the stream- Returns:
- a
Streamof all values for this Tuple of the given class
-
getter
static <TUPLE extends TupleOfNullables,R> TupleGetter<TUPLE,R> getter(int index)
Returns a getter method for the specified ordinal element.- Type Parameters:
TUPLE- the type of the tupleR- the type of the returned element- Parameters:
index- the position of the element to return- Returns:
- the created getter
-
-