Collection.addAll(stream) should not be named addAll
Remi Forax
forax at univ-mlv.fr
Fri Dec 14 06:05:20 PST 2012
One fundamental things to check when you do overloading is that the two
overloaded method should have the exact same semantics,
clearly Collection.addAll(Collection) and Collection.addAll(Stream) have
different semantics with respect to the order at least also
addAll(Stream) doesn't return if the collection was mutated.
I have not idea what name to use but not addAll.
Rémi
More information about the lambda-libs-spec-observers
mailing list