mergers
Brian Goetz
brian.goetz at oracle.com
Wed Apr 17 18:21:02 PDT 2013
Collectors defines three merge functions:
throwingMerger -- always throws
firstWinsMerger -- takes first
lastWinsMerger -- takes last
These are plain old BinaryOperators that can be used for Map.merge as
well as the toMap collectors.
Someone commented that these look a little out of place in Collectors,
and they are certainly not Collector-specific. Is there a better place
for them?
More information about the lambda-libs-spec-observers
mailing list