Interface XConsumer<T>

Type Parameters:
T - 操作的输入类型
All Superinterfaces:
Consumer<T>, Serializable
All Known Implementing Classes:
Tailer.ConsoleLineHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface XConsumer<T> extends Consumer<T>, Serializable
表示接受单个输入参数且不返回结果的操作 与大多数其他功能接口不同,消费者预计将通过副作用进行操作
Since:
Java 17+
Author:
Kimi Liu