-
- All Superinterfaces:
BasicTuple<Optional<Object>>
- All Known Subinterfaces:
MutableTuple0,MutableTuple1<T0>,MutableTuple10<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>,MutableTuple11<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>,MutableTuple12<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>,MutableTuple13<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>,MutableTuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>,MutableTuple15<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>,MutableTuple16<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>,MutableTuple17<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>,MutableTuple18<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>,MutableTuple19<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>,MutableTuple2<T0,T1>,MutableTuple20<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>,MutableTuple21<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>,MutableTuple22<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>,MutableTuple23<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>,MutableTuple3<T0,T1,T2>,MutableTuple4<T0,T1,T2,T3>,MutableTuple5<T0,T1,T2,T3,T4>,MutableTuple6<T0,T1,T2,T3,T4,T5>,MutableTuple7<T0,T1,T2,T3,T4,T5,T6>,MutableTuple8<T0,T1,T2,T3,T4,T5,T6,T7>,MutableTuple9<T0,T1,T2,T3,T4,T5,T6,T7,T8>
public interface MutableTuple 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 MutableTuple,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 MutableTuple,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
-
-