jOOQ / jOOL

jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
http://www.jooq.org/products
Apache License 2.0
2.08k stars 167 forks source link

Add Collectable<T>. A common super type for Seq<T> and Window<T> #166

Closed lukaseder closed 8 years ago

lukaseder commented 8 years ago

This new type will contain an abstract collect() method and lots of default methods that delegate to collect() to avoid duplication.

lukaseder commented 8 years ago

Collectable must not contain any default methods that risk being added to Stream in JDK 9+.

See this comment for an explanation: https://github.com/jOOQ/jOOL/issues/158#issuecomment-169308181

Some default methods are excluded from this rule, e.g. the ones overloading collect() to delegate to Tuple.collectors()

lukaseder commented 8 years ago

This will be done as of #158