summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/funcutils
diff options
context:
space:
mode:
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java
new file mode 100644
index 0000000..c161ed7
--- /dev/null
+++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java
@@ -0,0 +1,31 @@
+package bjc.utils.funcutils;
+
+/**
+ * Consumer that takes three arguments.
+ *
+ * @author EVE
+ *
+ * @param <A>
+ * Type of the first argument.
+ * @param <B>
+ * Type of the second argument.
+ * @param <C>
+ * Type of the third argument.
+ *
+ */
+@FunctionalInterface
+public interface TriConsumer<A, B, C> {
+ /**
+ * Perform the action.
+ *
+ * @param a
+ * The first parameter.
+ *
+ * @param b
+ * The second parameter.
+ *
+ * @param c
+ * The third parameter.
+ */
+ public void accept(A a, B b, C c);
+}