hg: lambda/lambda/jdk: - Transform MatchOp into a factory class MatchOps.

paul.sandoz at oracle.com paul.sandoz at oracle.com
Thu Mar 7 01:54:07 PST 2013

Changeset: f0063d6f7bfd
Author:    psandoz
Date:      2013-03-07 10:47 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/f0063d6f7bfd

- Transform MatchOp into a factory class MatchOps.
TODO: merge Supplier of Sink into MatchOp since the Sink
captures variables, thus creating one thing instead of two.
- Transform FindOp into a factory class FindOps.
Note: the method expressions passed to the FindOp constructor
are non-capturing so are constants.

! src/share/classes/java/util/stream/DoublePipeline.java
- src/share/classes/java/util/stream/FindOp.java
+ src/share/classes/java/util/stream/FindOps.java
! src/share/classes/java/util/stream/ForEachOps.java
! src/share/classes/java/util/stream/IntPipeline.java
! src/share/classes/java/util/stream/LongPipeline.java
- src/share/classes/java/util/stream/MatchOp.java
+ src/share/classes/java/util/stream/MatchOps.java
! src/share/classes/java/util/stream/ReduceOps.java
! src/share/classes/java/util/stream/ReferencePipeline.java

More information about the lambda-dev mailing list