Interface CharToLongCollector<A>
-
- Type Parameters:
A- the intermediary accumulating type
public interface CharToLongCollector<A>Primitive collector that operates oncharvalues, resulting in a singlelong.- Since:
- 1.0.3
- Author:
- Emil Forslund
- See Also:
Collector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjCharConsumer<A>accumulator()Stateless function that takes an accumulating object returned bysupplier()and adds a singlecharvalue to it.Set<Collector.Characteristics>characteristics()Returns a set of characteristics for this collector.BinaryOperator<A>combiner()Stateless function that takes two accumulating objects and returns a single one representing the combined result.ToLongFunction<A>finisher()Returns a finisher function that takes an accumulating object and turns it into the finallong.Supplier<A>supplier()Returns a supplier that can create an intermediary accumulating object.
-
-
-
Method Detail
-
supplier
Supplier<A> supplier()
Returns a supplier that can create an intermediary accumulating object.- Returns:
- the supplier for the accumulating object
- See Also:
Collector.supplier()
-
accumulator
ObjCharConsumer<A> accumulator()
Stateless function that takes an accumulating object returned bysupplier()and adds a singlecharvalue to it.- Returns:
- the accumulator
- See Also:
Collector.accumulator()
-
combiner
BinaryOperator<A> combiner()
Stateless function that takes two accumulating objects and returns a single one representing the combined result. This can be either one of the two instances or a completely new instance.- Returns:
- the combiner
- See Also:
Collector.combiner()
-
finisher
ToLongFunction<A> finisher()
Returns a finisher function that takes an accumulating object and turns it into the finallong.- Returns:
- the finisher
- See Also:
Collector.finisher()
-
characteristics
Set<Collector.Characteristics> characteristics()
Returns a set of characteristics for this collector.- Returns:
- the characteristics for this collector
- See Also:
Collector.characteristics()
-
-