Java – StreamSupport Class

Java StreamSupport Class methods, constructors, variables available in Java 8 release are listed below. We will publish example program on each methods ASAP.

Methods in Java StreamSupport Class

S.No Method & Description
1 static DoubleStream doubleStream(Spliterator.OfDouble spliterator, boolean parallel)

Creates a new sequential or parallel DoubleStream from a Spliterator.OfDouble.
2 static DoubleStream doubleStream(Supplier<? extends Spliterator.OfDouble> supplier, int characteristics, boolean parallel)

Creates a new sequential or parallel DoubleStream from a Supplier of Spliterator.OfDouble.
3 static IntStream intStream(Spliterator.OfInt spliterator, boolean parallel)

Creates a new sequential or parallel IntStream from a Spliterator.OfInt.
4 static IntStream intStream(Supplier<? extends Spliterator.OfInt> supplier, int characteristics, boolean parallel)

Creates a new sequential or parallel IntStream from a Supplier of Spliterator.OfInt.
5 static LongStream longStream(Spliterator.OfLong spliterator, boolean parallel)

Creates a new sequential or parallel LongStream from a Spliterator.OfLong.
6 static LongStream longStream(Supplier<? extends Spliterator.OfLong> supplier, int characteristics, boolean parallel)

Creates a new sequential or parallel LongStream from a Supplier of Spliterator.OfLong.
7 static <T> Stream<T> stream(Spliterator<T> spliterator, boolean parallel)

Creates a new sequential or parallel Stream from a Spliterator.
8 static <T> Stream<T> stream(Supplier<? extends Spliterator<T>> supplier, int characteristics, boolean parallel)

Creates a new sequential or parallel Stream from a Supplier of Spliterator.

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 – IntStream.Builder Interface
  2. Java – Stream Interface
  3. Java – LongStream.Builder Interface
  4. Java – Stream.Builder Interface
  5. Java – Collectors Class
  6. Java – DoubleStream Interface
  7. java.util.stream Package
  8. Java – StreamSupport Class
  9. Java – DoubleStream.Builder Interface
  10. Java – LongStream Interface
  11. Java – Collector Interface
  12. Java – IntStream Interface
  13. Java – BaseStream Interface

Be the first to comment

Leave a Reply

Your email address will not be published.


*