Tutoriel JAVA8 N°15: Collectors 2 joining,SummingDouble,SummingInt,SummingLong

Опубликовано: 01 Август 2018
на канале: Simad
90
1

Joining collector can be used for joining Stream String elements.

SummarizingDouble/Long/Int is a collector that returns a special class containing statistical information about numerical data in a Stream of extracted elements.
AveragingDouble/Long/Int is a collector that simply returns an average of extracted elements.
SummingDouble/Long/Int is a collector that simply returns a sum of extracted elements.