-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code contribution for JDK8 collectors support #2591
Comments
Thanks for this tip. I'm sorry to say that we've done a large amount of On Thu, Oct 6, 2016 at 10:44 AM, Gili Tzabari [email protected]
Kevin Bourrillion | Java Librarian | Google, Inc. | [email protected] |
(Note: This will break the public Guava GWT tests. We'll come back to fix them.) Fixes #2585, #2479, #2029, and probably various other issues :) Also relevant: #2591 ------------- Created by MOE: https:/google/moe MOE_MIGRATED_REVID=138100073
Err, didn't mean to close this one, sorry. |
I just wrote this up really quickly. I assume that you have an even better, more efficient version, in the works: https://medium.com/@robertmassaioli/an-immutablemultimapcollector-for-guava-3f141f9040f#.m18fnmgwo |
We've mirrored out our implementations (along with other Java 8 changes). Let us know if you have any particular suggestions. |
I'd be interested in seeing a map stream class in a similar vein to OpenGamma Strata's MapStream or StreamEx's EntryStream. I don't have any uses for such a class yet, but I imagine it would be useful if one needs to do something where they'd either need to use deep-nested chaining of the functional methods in |
Now that you mention it, a new issue is probably the way to go for any suggestions, given how broad this feature request currently is. I'll close it, and yes, please do open a new issue. Everyone else, feel free to do the same. |
Please let me know if you create a separate issue. I will add my comments there. Thank you. |
@jbduncan The main feature I was trying to propose by opening this issue was offering a builder design pattern for Collectors in order to improve readability. I think this is one of the main features that sets my API apart from others. |
Example:
My API still offers the static factory methods that others have implemented but for improved readability or advanced use-cases, I recommend the builder pattern. Also, notice the way it's implemented users are guided forward by a multi-step DSL. At each step of the DSL, code-complete will offer a different set of methods until a terminal method is invoked. |
Ah I see, looks rather interesting to me. I especially like the DSL-y, aids-with-code-completion idea! However I still think it's worth creating a new issue with this builder-pattern-based collector idea as the topic, as this issue is currently closed and the Guava team may never visit it again. |
Hi,
I read that you plan on adding JDK8 support in version 21. I want to bring your attention to https://bitbucket.org/cowwoc/guava-jdk8/ which I authored a few months ago.
Feel free to borrow design ideas and/or code sniplets for your upcoming release.
The text was updated successfully, but these errors were encountered: