Returns a collector wrapping the given collector. The returned collector will produce a wrapper object containing the result of the given collector.
collector |
a collector |
the collector implementation |