接口 CollectConsumer<T,R>
-
- 类型参数:
T- the element typeR- the return type
- 所有超级接口:
java.util.function.Consumer<T>
public interface CollectConsumer<T,R> extends java.util.function.Consumer<T>Interface to consume elements, and return a result finally.
-
-
方法详细资料
-
accept
void accept(T value)
Consume value, may be called zero, one, or multi time.- 指定者:
accept在接口中java.util.function.Consumer<T>
-
finish
R finish()
Elements emit finished. This method is called only once, after all elements are send. This method should be called only once.- 返回:
- should return the final value.
-
-