register

fun register(type: String, block: () -> Collector<*>)

Registers a new type of Collector.

Parameters

type

The type of the Collector.

block

A function that creates a new instance of the Collector.