com.github.edgar615.util.vertx.function.Consumer3 Maven / Gradle / Ivy
package com.github.edgar615.util.vertx.function;
import java.util.Objects;
/**
* Created by Edgar on 2016/8/1.
*
* @author Edgar Date 2016/8/1
*/
@FunctionalInterface
public interface Consumer3 {
void accept(T1 t1, T2 t2, T3 t3);
default Consumer3 andThen(Consumer3 after) {
Objects.requireNonNull(after);
return (t1, t2, t3) -> {
accept(t1, t2, t3);
after.accept(t1, t2, t3);
};
}
}