Answer the question
In order to leave comments, you need to log in
How does Comparator.comparing work in Java?
Hello everyone, please help me figure out what the next line does?
.sorted(Comparator.comparing(Matcher::getSourceFileName).thenComparingLong(Matcher::getSourceFileLineNumber))
getAllMatchers()
.stream()
.sorted(Comparator.comparing(Matcher::getSourceFileName).thenComparingLong(Matcher::getSourceFileLineNumber))
.forEach(matcher -> {
MatcherImpact matcherImpact = new MatcherImpact();
matcherImpact.name = matcher.getMatcherSourceLocation();
impactOverview.put(matcher.getMatcherSourceLocation(), matcherImpact);
impactList.add(matcherImpact);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question