Closed rogusdev closed 8 years ago
One note on your stream usages: I prefer a line break on every new segment of the stream. This produces a large amount of lines, but makes it very easy to see what happens.
Could you comment on the exact lines you wish to be new line separated? Thanks.
The stream formatting I prefer is
list.stream()
.map(item -> item.toObject())
.collect(someCollector());
Ie one stream transformation per line. Sorry for bad examples. Currently roaming on my cell phone.
Edit: also, use method reference when available for your transformations
I pushed a commit earlier today that I believe should cover that to your tastes then.
Thank you for your contribution! This will be in for version 2.1! =)
Looking forward to it, glad to help!
This is a simple, yet seemingly effective way to deal with this. I'll review this after my vacation. The plan is to allow users to set a default, but this will be a great deference for no set default. Thanks!