Skip to content

v1.1.6

Compare
Choose a tag to compare
@aNNiMON aNNiMON released this 01 Mar 09:24
· 177 commits to master since this release
  • Added Stream.withoutNulls() Stream.nullsOnly() and Predicate.Util.notNull(). Thanks to @IlyaGulya
  • Added Java 8 Comparator backport. Thanks to @BattleShipPark
  • Added Objects.compareInt and Objects.compareLong — backport of Java 7 Integer.compare and Long.compare
  • Added takeUntil and scan operators
  • Added indexed operators: filterIndexed, mapIndexed, takeWhileIndexed, takeUntilIndexed, dropWhileIndexed, reduceIndexed, forEachIndexed and indexed functional interfaces.
    Many thanks to @dalewking for help and suggestions.
  • Fixed unnecessary boxing in filter, flatMap, scan and single operators of primitive streams.
  • Reduced calls to first iterator in Stream.concat
  • Stream operators now placed into named classes in separate package. It can speed up the execution and improve stack trace readability. See an example.
  • Many other fixes and improvements.

streamTest

  • Added stream custom operator assertions:

    Stream.range(1, 4).custom(assertElements(contains(1, 2, 3)))
  • Update mockito to 2.7.13