RFR: 8015318: Extend Collector with 'finish' operation
henry.jen at oracle.com
Sat Jul 6 00:18:53 UTC 2013
Forgot to mention this patch depends on fix of bug 8012238, to enable
compile without fix, attached patch will help.
On 07/05/2013 05:11 PM, Henry Jen wrote:
> Please review the webrev at
> This webrev refactor java.util.Collector interface to allow an
> intermediate type used for accumulation and then produce final result
> type with a 'finished' function.
> Collectors are updated to reflect the changes, and quite a few API changes,
> toStringJoiner -> joining
> Return type becoming Optional<T> when appropriate
> sumBy -> a set of summing[Int,Long,Double]
> I'll put specdiff up later for those interested in API changes.
More information about the core-libs-dev