forked from jOOQ/jOOL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jOOQ#391] Add Predicate<Tuple[N]<T...>> Tuple.predicate(Predicate[N]…
…<T...>) In order to beautify stream processing like that: Seq.of(tuple("marco", 24), tuple("luigi", 16), tuple("maria", 18)) .filter(Tuple.predicate((name, age) -> age > 17)) .map(Tuple.function((name, age) -> tuple("Sir / Madame " + name, age))) .forEach(Tuple.consumer((name, age) -> process(options, name, age)));
- Loading branch information
1 parent
7691de0
commit 389bdbc
Showing
2 changed files
with
258 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters