Documentation / dataflow-async / com.femastudios.dataflow.async.util / tuple
Go to reference

tuple

fun <A, B> tuple(first: Attribute<A>, second: Attribute<B>): Attribute<Pair<A, B>>

Creates a Field of Pair, given two separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.

See Also

Attribute.pair


fun <A, B, C> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>): Attribute<Triple<A, B, C>>

Creates a Field of Triple, given three separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>): Attribute<Quadruple<A, B, C, D>>

Creates a Field of Quadruple, given four separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>): Attribute<Quintuple<A, B, C, D, E>>

Creates a Field of Quintuple, given five separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E, F> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>, sixth: Attribute<F>): Attribute<Sixfold<A, B, C, D, E, F>>

Creates a Field of Sixfold, given six separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E, F, G> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>, sixth: Attribute<F>, seventh: Attribute<G>): Attribute<Sevenfold<A, B, C, D, E, F, G>>

Creates a Field of Sevenfold, given seven separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E, F, G, H> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>, sixth: Attribute<F>, seventh: Attribute<G>, eighth: Attribute<H>): Attribute<Eightfold<A, B, C, D, E, F, G, H>>

Creates a Field of Eightfold, given eight separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E, F, G, H, I> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>, sixth: Attribute<F>, seventh: Attribute<G>, eighth: Attribute<H>, ninth: Attribute<I>): Attribute<Ninefold<A, B, C, D, E, F, G, H, I>>

Creates a Field of Ninefold, given nine separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.


fun <A, B, C, D, E, F, G, H, I, J> tuple(first: Attribute<A>, second: Attribute<B>, third: Attribute<C>, fourth: Attribute<D>, fifth: Attribute<E>, sixth: Attribute<F>, seventh: Attribute<G>, eighth: Attribute<H>, ninth: Attribute<I>, tenth: Attribute<J>): Attribute<Tenfold<A, B, C, D, E, F, G, H, I, J>>

Creates a Field of Tenfold, given ten separate attributes.

When one of the attributes is in Error the resulting attribute will be in Error, when one of the attributes is in Loading the resulting attribute will be in Loading, when they are all Loaded the resulting attribute will have the specified tuple.