Top Description Methods
java.util.stream

pack-priv Interface TerminalSink<T, R>

extends Sink<T>, Supplier<R>
Known Direct Subinterfaces
java.util.stream.ReduceOps.AccumulatingSink
Known Direct Implementers
java.util.stream.FindOps.FindSink, java.util.stream.ForEachOps.ForEachOp
Type Parameters
<T>
the type of elements to be accepted
<R>
the type of the result
Imports
java.util.function.Supplier

A Sink which accumulates state as elements are accepted, and allows a result to be retrieved after the computation is finished.
Since
1.8

Method Summary

Inherited from java.util.function.Supplier:
get
Inherited from java.util.stream.Sink:
acceptacceptacceptbegincancellationRequestedend