Searched defs:Collectors (Results 1 - 1 of 1) sorted by relevance

/libcore/ojluni/src/main/java/java/util/stream/
H A DCollectors.java70 * List<String> list = people.stream().map(Person::getName).collect(Collectors.toList());
73 * Set<String> set = people.stream().map(Person::getName).collect(Collectors.toCollection(TreeSet::new));
78 * .collect(Collectors.joining(", "));
82 * .collect(Collectors.summingInt(Employee::getSalary)));
87 * .collect(Collectors.groupingBy(Employee::getDepartment));
92 * .collect(Collectors.groupingBy(Employee::getDepartment,
93 * Collectors.summingInt(Employee::getSalary)));
98 * .collect(Collectors.partitioningBy(s -> s.getGrade() >= PASS_THRESHOLD));
104 public final class Collectors { class
120 private Collectors() { } method in class:Collectors
[all...]

Completed in 15 milliseconds