booster / com.didiglobal.booster.transform.util / CompositeCollector

CompositeCollector

class CompositeCollector : Collector<List<*>>

Represents a composite collector

Author
johnsonlee

Constructors

<init>

CompositeCollector(vararg collectors: Collector<*>)

Represents a composite collector

CompositeCollector(collectors: Iterable<Collector<*>>)

Functions

accept

Determine the input is acceptable by this collector

fun accept(name: String): Boolean

collect

Returns the collected result, a non-null result means the matched input is out-of-date.

fun collect(name: String, data: () -> ByteArray): List<*>