java.util.stream Package

java.util.stream Package : Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

Interfaces in java.util.stream Package

S.No Interface & Description
1 BaseStream<T,S extends BaseStream<T,S>>

Base interface for streams, which are sequences of elements supporting sequential and parallel aggregate operations.
2 Collector<T,A,R>

A mutable reduction operation that accumulates input elements into a mutable result container, optionally transforming the accumulated result into a final representation after all input elements have been processed.
3 DoubleStream

A sequence of primitive double-valued elements supporting sequential and parallel aggregate operations.
4 DoubleStream.Builder

A mutable builder for a DoubleStream.
5 IntStream

A sequence of primitive int-valued elements supporting sequential and parallel aggregate operations.
6 IntStream.Builder

A mutable builder for an IntStream.
7 LongStream

A sequence of primitive long-valued elements supporting sequential and parallel aggregate operations.
8 LongStream.Builder

A mutable builder for a LongStream.
9 Stream<T>

A sequence of elements supporting sequential and parallel aggregate operations.
10 Stream.Builder<T>

A mutable builder for a Stream.

Classes in java.util.stream Package

S.No Class & Description
1 Collectors

Implementations of Collector that implement various useful reduction operations, such as accumulating elements into collections, summarizing elements according to various criteria, etc.
2 StreamSupport

Low-level utility methods for creating and manipulating streams.

Enums in java.util.stream Package

S.No Enum & Description
1 Collector.Characteristics

Characteristics indicating properties of a Collector, which can be used to optimize reduction implementations.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java LongStream limit() method with example
  2. Java DoubleStream average() method with example
  3. Java IntStream peek() method with example
  4. Java DoubleStream forEach() method with example
  5. Java Stream mapToLong() method with example
  6. Java LongStream max() method with example
  7. Java DoubleStream iterator() method with example
  8. Java Stream flatMap() method with example
  9. Java DoubleStream anyMatch() method with example
  10. Java IntStream.Builder build() method with example
  11. Java Stream flatMapToInt() method with example
  12. Java DoubleStream.Builder add() method with example
  13. Java LongStream distinct() method with example
  14. Java LongStream findAny() method with example
  15. Java – Stream.Builder Interface

Be the first to comment