v1.1.6
- Added
Stream.withoutNulls()
Stream.nullsOnly()
andPredicate.Util.notNull()
. Thanks to @IlyaGulya - Added Java 8
Comparator
backport. Thanks to @BattleShipPark - Added
Objects.compareInt
andObjects.compareLong
— backport of Java 7Integer.compare
andLong.compare
- Added
takeUntil
andscan
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
andsingle
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