Skip to content

Comments

Java01. ДЗ 06, Сосин Иван, подгруппа 2#83

Open
iasawseen wants to merge 6 commits intojava-course-au:05-streamsfrom
iasawseen:05-streams
Open

Java01. ДЗ 06, Сосин Иван, подгруппа 2#83
iasawseen wants to merge 6 commits intojava-course-au:05-streamsfrom
iasawseen:05-streams

Conversation

@iasawseen
Copy link

Copy link

@sproshev sproshev left a comment

Choose a reason for hiding this comment

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

10

return s
.filter(album -> album.getTracks()
.stream()
.filter(track -> track.getRating() > threshold).count() > 0)
Copy link

Choose a reason for hiding this comment

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

см anyMatch

throw new UnsupportedOperationException();
return s
.filter(clazz::isInstance)
.map(a -> (R) a);
Copy link

Choose a reason for hiding this comment

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

clazz::cast

.entrySet()
.stream()
.max(Comparator.comparing(entry -> entry.getValue().stream().mapToLong(String::length).sum()))
.get().getKey();
Copy link

Choose a reason for hiding this comment

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

warning, который желательно избежать

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants