Java Streams - Collectors Example
Method
- Collectors averagingDouble (ToDoubleFunction mapper)
- Collectors averagingInt(ToIntFunction mapper)
- Collectors averagingLong (ToLongFunction mapper)
- Collectors collectingAndThen (Collector downstream, Function finisher)
- Collectors counting()
- Collectors groupingByConcurrent(Function classifier)
- Collectors groupingByConcurrent (Function classifier, Collector downstream)
- Collectors groupingBy(Function classifier)
- Collectors groupingBy(Function classifier, Collector downstream)
- Collectors groupingBy(Function classifier, Supplier mapFactory, Collector downstream)
- Collectors joining()
- Collectors joining(CharSequence delimiter)
- Collectors joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix)
- Collectors mapping(Function mapper, Collector downstream)
- Collectors maxBy(Comparator comparator)
- Collectors minBy(Comparator comparator)
- Collectors partitioningBy(Predicate predicate)
- Collectors partitioningBy(Predicate predicate, Collector downstream)
- Collectors reducing(BinaryOperator op)
- Collectors reducing(U identity, Function mapper, BinaryOperator op)
- Collectors summarizingDouble (ToDoubleFunction mapper)
- Collectors summarizingInt (ToIntFunction mapper)
- Collectors summarizingLong (ToLongFunction mapper)
- Collectors summingDouble (ToDoubleFunction mapper)
- Collectors summingInt(ToIntFunction mapper)
- Collectors summingLong(ToLongFunction mapper)
- Collectors toCollection(Supplier collectionFactory)
- Collectors toConcurrentMap(Function keyMapper, Function valueMapper)
- Collectors toConcurrentMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction, Supplier mapSupplier)
- Collectors toConcurrentMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)
- Collectors toList()
- Collectors toMap(Function keyMapper, Function valueMapper)
- Collectors toMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)
- Collectors toSet()