public class Accumulator$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Accumulator$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Accumulator$() |
Modifier and Type | Method and Description |
---|---|
<A> java.lang.Object |
adder()
A `BiConsumer` that adds an element to an `Accumulator`, suitable for use with `java.util.stream.Stream`'s `collect` method.
|
<A> Accumulator<A> |
from(scala.collection.TraversableOnce<A> source)
Builds an `Accumulator` from any `TraversableOnce`
|
<A> java.lang.Object |
merger()
A `BiConsumer` that merges `Accumulator`s, suitable for use with `java.util.stream.Stream`'s `collect` method.
|
<A> java.lang.Object |
supplier()
A `Supplier` of `Accumulator`s, suitable for use with `java.util.stream.Stream`'s `collect` method.
|
public static final Accumulator$ MODULE$
public <A> java.lang.Object supplier()
public <A> java.lang.Object adder()
public <A> java.lang.Object merger()
public <A> Accumulator<A> from(scala.collection.TraversableOnce<A> source)