diff --git a/reactfx/src/main/java/org/reactfx/util/HexaConsumer.java b/reactfx/src/main/java/org/reactfx/util/HexaConsumer.java
new file mode 100644
index 0000000..bb1a567
--- /dev/null
+++ b/reactfx/src/main/java/org/reactfx/util/HexaConsumer.java
@@ -0,0 +1,6 @@
+package org.reactfx.util;
+
+@FunctionalInterface
+public interface HexaConsumer {
+ void accept(A a, B b, C c, D d, E e, F f);
+}
\ No newline at end of file
diff --git a/reactfx/src/main/java/org/reactfx/util/PentaConsumer.java b/reactfx/src/main/java/org/reactfx/util/PentaConsumer.java
new file mode 100644
index 0000000..0e94352
--- /dev/null
+++ b/reactfx/src/main/java/org/reactfx/util/PentaConsumer.java
@@ -0,0 +1,6 @@
+package org.reactfx.util;
+
+@FunctionalInterface
+public interface PentaConsumer {
+ void accept(A a, B b, C c, D d, E e);
+}
\ No newline at end of file
diff --git a/reactfx/src/main/java/org/reactfx/util/TetraConsumer.java b/reactfx/src/main/java/org/reactfx/util/TetraConsumer.java
new file mode 100644
index 0000000..7e25310
--- /dev/null
+++ b/reactfx/src/main/java/org/reactfx/util/TetraConsumer.java
@@ -0,0 +1,6 @@
+package org.reactfx.util;
+
+@FunctionalInterface
+public interface TetraConsumer {
+ void accept(A a, B b, C c, D d);
+}
\ No newline at end of file
diff --git a/reactfx/src/main/java/org/reactfx/util/Tuple2.java b/reactfx/src/main/java/org/reactfx/util/Tuple2.java
index 6aa6af1..41848a4 100644
--- a/reactfx/src/main/java/org/reactfx/util/Tuple2.java
+++ b/reactfx/src/main/java/org/reactfx/util/Tuple2.java
@@ -3,6 +3,7 @@
import static org.reactfx.util.Tuples.*;
import java.util.Objects;
+import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.BiPredicate;
@@ -31,6 +32,10 @@ public boolean test(BiPredicate super A, ? super B> f) {
return f.test(_1, _2);
}
+ public void exec(BiConsumer super A, ? super B> f) {
+ f.accept(_1, _2);
+ }
+
@Override
public boolean equals(Object other) {
if(other instanceof Tuple2) {
diff --git a/reactfx/src/main/java/org/reactfx/util/Tuple3.java b/reactfx/src/main/java/org/reactfx/util/Tuple3.java
index 57e2f20..b79c8cc 100644
--- a/reactfx/src/main/java/org/reactfx/util/Tuple3.java
+++ b/reactfx/src/main/java/org/reactfx/util/Tuple3.java
@@ -35,6 +35,10 @@ public boolean test(TriPredicate super A, ? super B, ? super C> f) {
return f.test(_1, _2, _3);
}
+ public void exec(TriConsumer super A, ? super B, ? super C> f) {
+ f.accept(_1, _2, _3);
+ }
+
@Override
public boolean equals(Object other) {
if(other instanceof Tuple3) {
diff --git a/reactfx/src/main/java/org/reactfx/util/Tuple4.java b/reactfx/src/main/java/org/reactfx/util/Tuple4.java
index 9607e7c..aefe751 100644
--- a/reactfx/src/main/java/org/reactfx/util/Tuple4.java
+++ b/reactfx/src/main/java/org/reactfx/util/Tuple4.java
@@ -41,6 +41,10 @@ public boolean test(TetraPredicate super A, ? super B, ? super C, ? super D> f
return f.test(_1, _2, _3, _4);
}
+ public void exec(TetraConsumer super A, ? super B, ? super C, ? super D> f) {
+ f.accept(_1, _2, _3, _4);
+ }
+
@Override
public boolean equals(Object other) {
if(other instanceof Tuple4) {
diff --git a/reactfx/src/main/java/org/reactfx/util/Tuple5.java b/reactfx/src/main/java/org/reactfx/util/Tuple5.java
index ddf18a0..8296af7 100644
--- a/reactfx/src/main/java/org/reactfx/util/Tuple5.java
+++ b/reactfx/src/main/java/org/reactfx/util/Tuple5.java
@@ -47,6 +47,10 @@ public boolean test(PentaPredicate super A, ? super B, ? super C, ? super D, ?
return f.test(_1, _2, _3, _4, _5);
}
+ public void exec(PentaConsumer super A, ? super B, ? super C, ? super D, ? super E> f) {
+ f.accept(_1, _2, _3, _4, _5);
+ }
+
@Override
public boolean equals(Object other) {
if(other instanceof Tuple5) {
diff --git a/reactfx/src/main/java/org/reactfx/util/Tuple6.java b/reactfx/src/main/java/org/reactfx/util/Tuple6.java
index c93c28d..7b11f5c 100644
--- a/reactfx/src/main/java/org/reactfx/util/Tuple6.java
+++ b/reactfx/src/main/java/org/reactfx/util/Tuple6.java
@@ -53,6 +53,10 @@ public boolean test(HexaPredicate super A, ? super B, ? super C, ? super D, ?
return f.test(_1, _2, _3, _4, _5, _6);
}
+ public void exec(HexaConsumer super A, ? super B, ? super C, ? super D, ? super E, ? super F> f) {
+ f.accept(_1, _2, _3, _4, _5, _6);
+ }
+
@Override
public boolean equals(Object other) {
if(other instanceof Tuple6) {