One import static to rule them all (original) (raw)

Remi Forax forax at univ-mlv.fr
Wed Feb 6 16:06:37 PST 2013


I wonder if we should not create one artificial interface that extends Collector, FlatMapper, etc, i.e. every interfaces that declare static methods that can be used by the Stream API just because it will be easier to do an import static on this interface.

interface StaticDefaults // better name needed extends Collector<Void, Void>, FlatMapper<Void,Void> { }

otherwise, every Java projects will define its own one.

cheers, Rémi



More information about the lambda-libs-spec-observers mailing list