Skip to content
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

Changed and unified all groupBy methods to keep insertion order #1402

Merged
merged 1 commit into from
Jun 25, 2016
Merged

Changed and unified all groupBy methods to keep insertion order #1402

merged 1 commit into from
Jun 25, 2016

Conversation

l0rinc
Copy link
Contributor

@l0rinc l0rinc commented Jun 25, 2016

Separated it from #1398 upon the request of @ruslansennov.

This way the output of the benchmarks will have has the same order as its definition, not random.

.getOrElse(createFromEntries(Iterator.of(entry)));
return map.put(key, (M) values);
});
return Collections.groupBy(this, classifier, this::createFromEntries);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unified all groupBy methods to use the same template

@l0rinc l0rinc mentioned this pull request Jun 25, 2016
@codecov-io
Copy link

Current coverage is 97.22%

Merging #1402 into master will decrease coverage by <.01%

@@             master      #1402   diff @@
==========================================
  Files            86         86          
  Lines         10312      10282    -30   
  Methods           0          0          
  Messages          0          0          
  Branches       1824       1823     -1   
==========================================
- Hits          10027       9997    -30   
  Misses          157        157          
  Partials        128        128          

Powered by Codecov. Last updated by 8b574c3...1b730ef

@danieldietrich
Copy link
Contributor

Great, thank you! The changes look good to me.

I think the formatting might change again (whitespace) because we use different formatters. But that is of minor importance.

@danieldietrich danieldietrich merged commit 065a1a6 into vavr-io:master Jun 25, 2016
@l0rinc l0rinc deleted the groupBy branch June 25, 2016 19:15
@danieldietrich danieldietrich added this to the 2.1.0 milestone Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants