Uses of Class
net.jrodolfo.java_evolution.java08.StreamExamples.User
Packages that use StreamExamples.User
-
Uses of StreamExamples.User in net.jrodolfo.java_evolution.java08
Method parameters in net.jrodolfo.java_evolution.java08 with type arguments of type StreamExamples.UserModifier and TypeMethodDescriptionStreamExamples.activeUserNames(List<StreamExamples.User> users) Finds active users, extracts their names, and sorts the result.StreamExamples.longestName(List<StreamExamples.User> users) Usesmaxwith a comparator to find the longest user name.StreamExamples.namesByDepartment(List<StreamExamples.User> users) Groups user names by department withCollectors.groupingBy(Function).intStreamExamples.totalAgeOfActiveUsers(List<StreamExamples.User> users) Uses a primitiveIntStreamto sum ages without boxing every value as anInteger.