io.polaris.core.function.ConsumerWithArgs Maven / Gradle / Ivy
package io.polaris.core.function;
/**
* @author Qt
* @since 1.8
*/
@FunctionalInterface
public interface ConsumerWithArgs {
void accept(T... args);
default ConsumerWithArgs andThen(ConsumerWithArgs super T> after) {
return (T... args) -> {
accept(args);
after.accept(args);
};
}
}