org.reactfx.PoorMansNStream Maven / Gradle / Ivy
package org.reactfx;
import java.util.function.BiConsumer;
import org.reactfx.util.TriConsumer;
interface PoorMansBiStream extends BiEventStream {
@Override
default Subscription subscribe(BiConsumer super A, ? super B> subscriber) {
return subscribe(t -> subscriber.accept(t._1, t._2));
}
}
interface PoorMansTriStream extends TriEventStream {
@Override
default Subscription subscribe(TriConsumer super A, ? super B, ? super C> subscriber) {
return subscribe(t -> subscriber.accept(t._1, t._2, t._3));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy