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

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

Open
wants to merge 6 commits into
base: 05-streams
Choose a base branch
from

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