Interface ByteToLongCollector<A>

  • Type Parameters:
    A - the intermediary accumulating type

    public interface ByteToLongCollector<A>
    Primitive collector that operates on byte values, resulting in a single long.
    Since:
    1.0.3
    Author:
    Emil Forslund
    See Also:
    Collector
    • 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()
      • 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 final long.
        Returns:
        the finisher
        See Also:
        Collector.finisher()