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.
I propose a new private method in
SeqTest
:This method verifies whether our non-terminal
Seq
operations (e.g.limitWhile
,partition
,splitAt
) behave as expected, i.e.:Spliterator.tryAdvance
that returnstrue
actually calls givenaction
source
sequence is equal toexpectedCount
Iterator.hasNext
does not fetch any extra element from the source sequence (such calls are valid and should be "safe")Using this method I detected two defects: #308 and #309.