diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-17 19:14:17 -0400 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-17 19:14:45 -0400 |
| commit | 6e4d80b6fc50abd8692652cda03a1d21e44da261 (patch) | |
| tree | efb48ab4aae4765c6490f9707e73d2e9339172a8 /BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java | |
| parent | 2c32403f66a0fdf7a5eb105be45681eac604a5f4 (diff) | |
Add new 3-arg consumer type
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcutils/TriConsumer.java | 31 |
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); +} |
