mona-dish
    Preparing search index...

    Interface ICollector<T, S>

    A collector, needs to be implemented

    interface ICollector<T, S> {
        finalValue: S;
        collect(element: T): void;
    }

    Type Parameters

    • T
    • S

    Implemented by

    Index

    Properties

    Methods

    Properties

    finalValue: S

    the final result after all the collecting is done

    Methods

    • this method basically takes a single stream element and does something with it (collecting it one way or the other in most cases)

      Parameters

      • element: T

      Returns void