Method Wrap
Wrap(ICollector[])
Wraps a list of ICollectors with a MultiCollector. This method works as follows:
- Filters out the
null
collectors, so they are not used during search time. - If the input contains 1 real collector (i.e. non-
null
), it is returned. - Otherwise the method returns a MultiCollector which wraps the
non-
ones.null
Declaration
public static ICollector Wrap(params ICollector[] collectors)
Parameters
Type | Name | Description |
---|---|---|
ICollector[] | collectors |
Returns
Type | Description |
---|---|
ICollector |