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
Add example for Java 8 Streams via default method. #60
Comments
Outlines the use of Stream as simple wrapper around actual finder method result with a default method.
Is that example really something we'd recommend people to do? Turning a |
I just wanted to highlight two different ways to use Java 8 Streams - the variant with the default method simply shows how easy it is to extend the existing API without having to call stream() on the result yourself - this makes for shorter examples and demonstrates another use of default methods. |
To me it looks more like a "because you can" rather than something really useful. Would you really add three more lines and an additional repository method instead of just calling |
Since we have native |
We should show how to use Java 8 Streams in a default method by delegating to another finder and calling stream() on the result.
The text was updated successfully, but these errors were encountered: