Class AssocArrayCollector<S>

collects an assoc stream back to an assoc array

Type Parameters

  • S

Hierarchy

  • AssocArrayCollector

Implements

  • ICollector<[string, S] | string, {
        [key: string]: S;
    }>

Constructors

Properties

Methods

Constructors

Properties

finalValue: {
    [key: string]: any;
} = {}

the final result after all the collecting is done

Type declaration

  • [key: string]: any

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: string | [string, S]

    Returns void

Generated using TypeDoc