Collection.addAll(stream) should not be named addAll (original) (raw)
Remi Forax forax at univ-mlv.fr
Fri Dec 14 06:05:20 PST 2012
- Previous message: The implementation of default methods
- Next message: Stream, spliterator, supplier and size
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: The implementation of default methods
- Next message: Stream, spliterator, supplier and size
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list