Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.util.stream
Version documentée : Java SE 17

Classe « Collectors »

Informations générales

Héritage

java.lang.Object
    java.util.stream.Collectors

Définition

public final class Collectors extends java.lang.Object

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public static <T> Collector<T, ?, java.lang.Double> averagingDouble( ToDoubleFunction<? super T> mapper )
public static <T> Collector<T, ?, java.lang.Double> averagingInt( ToIntFunction<? super T> mapper )
public static <T> Collector<T, ?, java.lang.Double> averagingLong( ToLongFunction<? super T> mapper )
public static <T, A, R, RR> Collector<T, A, RR> collectingAndThen( Collector<T, A, R> downstream, Function<R, RR> finisher )
public static <T> Collector<T, ?, java.lang.Long> counting()
public static <T, A, R> Collector<T, ?, R> filtering( Predicate<? super T> predicate, Collector<? super T, A, R> downstream )
public static <T, U, A, R> Collector<T, ?, R> flatMapping( Function<? super T, ? extends java.util.stream.Stream<? extends U>> mapper, Collector<? super U, A, R> downstream )
public static <T, K> Collector<T, ?, java.util.Map<K, java.util.List<T>>> groupingBy( Function<? super T, ? extends K> classifier )
public static <T, K, A, D> Collector<T, ?, java.util.Map<K, D>> groupingBy( Function<? super T, ? extends K> classifier, Collector<? super T, A, D> downstream )
public static <T, K, D, A, M> Collector<T, ?, M> groupingBy( Function<? super T, ? extends K> classifier, Supplier<M> mapFactory, Collector<? super T, A, D> downstream )
public static <T, K, A, D, M> Collector<T, ?, M> groupingByConcurrent( Function<? super T, ? extends K> classifier, Supplier<M> mapFactory, Collector<? super T, A, D> downstream )
public static <T, K, A, D> Collector<T, ?, java.util.concurrent.ConcurrentMap<K, D>> groupingByConcurrent( Function<? super T, ? extends K> classifier, Collector<? super T, A, D> downstream )
public static <T, K> Collector<T, ?, java.util.concurrent.ConcurrentMap<K, java.util.List<T>>> groupingByConcurrent( Function<? super T, ? extends K> classifier )
public static Collector<java.lang.CharSequence, ?, java.lang.String> joining()
public static Collector<java.lang.CharSequence, ?, java.lang.String> joining( CharSequence delimiter, CharSequence prefix, CharSequence suffix )
public static Collector<java.lang.CharSequence, ?, java.lang.String> joining( CharSequence delimiter )
public static <T, U, A, R> Collector<T, ?, R> mapping( Function<? super T, ? extends U> mapper, Collector<? super U, A, R> downstream )
public static <T> Collector<T, ?, java.util.Optional<T>> maxBy( Comparator<? super T> comparator )
public static <T> Collector<T, ?, java.util.Optional<T>> minBy( Comparator<? super T> comparator )
public static <T> Collector<T, ?, java.util.Map<java.lang.Boolean, java.util.List<T>>> partitioningBy( Predicate<? super T> predicate )
public static <T, D, A> Collector<T, ?, java.util.Map<java.lang.Boolean, D>> partitioningBy( Predicate<? super T> predicate, Collector<? super T, A, D> downstream )
public static <T> Collector<T, ?, T> reducing( T identity, BinaryOperator<T> op )
public static <T> Collector<T, ?, java.util.Optional<T>> reducing( BinaryOperator<T> op )
public static <T, U> Collector<T, ?, U> reducing( U identity, Function<? super T, ? extends U> mapper, BinaryOperator<U> op )
public static <T> Collector<T, ?, java.util.DoubleSummaryStatistics> summarizingDouble( ToDoubleFunction<? super T> mapper )
public static <T> Collector<T, ?, java.util.IntSummaryStatistics> summarizingInt( ToIntFunction<? super T> mapper )
public static <T> Collector<T, ?, java.util.LongSummaryStatistics> summarizingLong( ToLongFunction<? super T> mapper )
public static <T> Collector<T, ?, java.lang.Double> summingDouble( ToDoubleFunction<? super T> mapper )
public static <T> Collector<T, ?, java.lang.Integer> summingInt( ToIntFunction<? super T> mapper )
public static <T> Collector<T, ?, java.lang.Long> summingLong( ToLongFunction<? super T> mapper )
public static <T, R1, R2, R> Collector<T, ?, R> teeing( Collector<? super T, ?, R1> downstream1, Collector<? super T, ?, R2> downstream2, BiFunction<? super R1, ? super R2, R> merger )
public static <T, C> Collector<T, ?, C> toCollection( Supplier<C> collectionFactory )
public static <T, K, U> Collector<T, ?, java.util.concurrent.ConcurrentMap<K, U>> toConcurrentMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper )
public static <T, K, U> Collector<T, ?, java.util.concurrent.ConcurrentMap<K, U>> toConcurrentMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction )
public static <T, K, U, M> Collector<T, ?, M> toConcurrentMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory )
public static <T> Collector<T, ?, java.util.List<T>> toList()
public static <T, K, U> Collector<T, ?, java.util.Map<K, U>> toMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper )
public static <T, K, U, M> Collector<T, ?, M> toMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory )
public static <T, K, U> Collector<T, ?, java.util.Map<K, U>> toMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction )
public static <T> Collector<T, ?, java.util.Set<T>> toSet()
public static <T> Collector<T, ?, java.util.List<T>> toUnmodifiableList()
public static <T, K, U> Collector<T, ?, java.util.Map<K, U>> toUnmodifiableMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper )
public static <T, K, U> Collector<T, ?, java.util.Map<K, U>> toUnmodifiableMap( Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction )
public static <T> Collector<T, ?, java.util.Set<T>> toUnmodifiableSet()

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait