Java Streams - Stream Example








Field

Method

  1. Stream allMatch(Predicate predicate)
  2. Stream anyMatch(Predicate predicate)
  3. Stream builder()
  4. Stream collect(Collector collector)
  5. Stream collect(Supplier supplier, BiConsumer accumulator, BiConsumer combiner)
  6. Stream concat(Stream a, Stream b)
  7. Stream count()
  8. Stream distinct()
  9. Stream empty()
  10. Stream filter(Predicate predicate)
  11. Stream findAny()
  12. Stream findFirst()
  13. Stream flatMapToDouble(Function mapper)
  14. Stream flatMapToInt(Function mapper)
  15. Stream flatMapToLong(Function mapper)
  16. Stream flatMap(Function mapper)
  17. Stream forEachOrdered(Consumer action)
  18. Stream forEach(Consumer action)
  19. Stream generate(Supplier s)
  20. Stream iterate(T seed, UnaryOperator f)
  21. Stream limit(long maxSize)
  22. Stream mapToDouble (ToDoubleFunction mapper)
  23. Stream mapToInt(ToIntFunction mapper)
  24. Stream mapToLong(ToLongFunction mapper)
  25. Stream map(Function mapper)
  26. Stream max(Comparator comparator)
  27. Stream min(Comparator comparator)
  28. Stream noneMatch(Predicate predicate)
  29. Stream of(T t)
  30. Stream of(T... values)
  31. Stream peek(Consumer action)
  32. Stream reduce(BinaryOperator accumulator)
  33. Stream reduce(T identity, BinaryOperator accumulator)
  34. Stream reduce(U identity, BiFunction accumulator, BinaryOperator combiner)
  35. Stream skip(long n)
  36. Stream sorted()
  37. Stream sorted(Comparator comparator)
  38. Stream toArray()
  39. Stream toArray(IntFunction generator)