public static class Producer.DefaultImpls
Instances of interface Producer are used to produce data for testing.
interface Producer| Modifier and Type | Method and Description |
|---|---|
static <B> Producer<B> |
map(Producer<A> $this,
kotlin.jvm.functions.Function1<? super A,? extends B> f)
Returns a new
interface Producer which produces data by first invoking this producer,
and then mapping the values with the given function. |
static <B,R> Producer<R> |
zip(Producer<A> $this,
Producer<B> pb,
kotlin.jvm.functions.Function2<? super A,? super B,? extends R> f)
Returns a new
interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer. |
static <B,C,R> Producer<R> |
zip(Producer<A> $this,
Producer<B> pb,
Producer<C> pc,
kotlin.jvm.functions.Function3<? super A,? super B,? super C,? extends R> f)
Returns a new
interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer. |
static <B,C,D,R> Producer<R> |
zip(Producer<A> $this,
Producer<B> pb,
Producer<C> pc,
Producer<D> pd,
kotlin.jvm.functions.Function4<? super A,? super B,? super C,? super D,? extends R> f)
Returns a new
interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer. |
static <B,C,D,E,R> |
zip(Producer<A> $this,
Producer<B> pb,
Producer<C> pc,
Producer<D> pd,
Producer<E> pe,
kotlin.jvm.functions.Function5<? super A,? super B,? super C,? super D,? super E,? extends R> f)
Returns a new
interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer. |
public static <B> Producer<B> map(Producer<A> $this, kotlin.jvm.functions.Function1<? super A,? extends B> f)
Returns a new interface Producer which produces data by first invoking this producer,
and then mapping the values with the given function.
interface Producerpublic static <B,R> Producer<R> zip(Producer<A> $this, Producer<B> pb, kotlin.jvm.functions.Function2<? super A,? super B,? extends R> f)
Returns a new interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer.
interface Producerpublic static <B,C,R> Producer<R> zip(Producer<A> $this, Producer<B> pb, Producer<C> pc, kotlin.jvm.functions.Function3<? super A,? super B,? super C,? extends R> f)
Returns a new interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer.
interface Producerpublic static <B,C,D,R> Producer<R> zip(Producer<A> $this, Producer<B> pb, Producer<C> pc, Producer<D> pd, kotlin.jvm.functions.Function4<? super A,? super B,? super C,? super D,? extends R> f)
Returns a new interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer.
interface Producerpublic static <B,C,D,E,R> Producer<R> zip(Producer<A> $this, Producer<B> pb, Producer<C> pc, Producer<D> pd, Producer<E> pe, kotlin.jvm.functions.Function5<? super A,? super B,? super C,? super D,? super E,? extends R> f)
Returns a new interface Producer which produces elements by mapping tuples of values
produced by this producer and the given producer.
interface Producer