Package akka.stream.impl
Class FirstCollectorState<T,R>
- java.lang.Object
-
- akka.stream.impl.FirstCollectorState<T,R>
-
- All Implemented Interfaces:
CollectorState<T,R>
public final class FirstCollectorState<T,R> extends java.lang.Object implements CollectorState<T,R>
INTERNAL APIHelper class to be able to express collection as a fold using mutable data
-
-
Constructor Summary
Constructors Constructor Description FirstCollectorState(scala.Function0<java.util.stream.Collector<T,java.lang.Object,R>> collectorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accumulated()
R
finish()
CollectorState<T,R>
update(T elem)
-
-
-
Method Detail
-
accumulated
public java.lang.Object accumulated()
- Specified by:
accumulated
in interfaceCollectorState<T,R>
-
finish
public R finish()
- Specified by:
finish
in interfaceCollectorState<T,R>
-
update
public CollectorState<T,R> update(T elem)
- Specified by:
update
in interfaceCollectorState<T,R>
-
-