blob: 01c83946bc647d85b3498468118f1ec78f8139b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package com.github.markozajc.functions;
import java.util.function.Consumer;
/**
* A {@link Consumer} variant that takes three generic types.
*
* @author Marko Zajc
*
* @param <T>
* the type of the first argument to the operation
* @param <U>
* the type of the second argument to the operation
* @param <V>
* the type of the third argument to the operation
*/
@FunctionalInterface
public interface TriConsumer<T, U, V> {
/**
* Performs this operation on the given arguments.
*
* @param t
* the first input argument
* @param u
* the second input argument
* @param v
* the third input argument
*/
void accept(T t, U u, V v);
}
|