flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gyfora <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-3075] Change Either creation method nam...
Date Tue, 24 Nov 2015 18:16:41 GMT
GitHub user gyfora opened a pull request:


    [FLINK-3075] Change Either creation method names and expose Right/Left classes

    This PR changes the way users can create the Either objects to make it more java 8 friendly.
    The Either.left(left) and Either.right(right) have been renamed to createLeft and createRight
respectively and now the Right and Left classes are directly exposed as well. 
    This is more inline with how it is in scala and avoids method name clashes when trying
to reference the Either methods from java lambdas allowing to do something like:
    `((List<Either<String, Integer>>) l).stream().filter(Either::isLeft).map(Either::left);`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gyfora/flink either

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1402
commit 40bc28bc07f46defe49fea7f007f2a765f0c022d
Author: Gyula Fora <gyfora@apache.org>
Date:   2015-11-24T18:00:36Z

    [FLINK-3075] Change Either creation method names and expose Right/Left classes


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message