Releases: aNNiMON/Lightweight-Stream-API
v1.1.2
distinct
method now preserves order (thanks to @pawelkw for having noticed this issue)
Improved error checking in sample
method
Added single
and findSingle
methods (thanks to @xsveda)
Added recover
and recoverWith
methods to Exceptional
(see #66)
Added executeIfPresent
and executeIfAbsent
methods to Optional
and OptionalInt
(see #68)
Added ifPresent
method to Exceptional
Ability to invoke zip
method with Iterator
to prevent unnecessary wraping to Stream
Added index
operator to Stream
Other fixes and improvements
v1.1.1
Added IntStream
, OptionalInt
and RandomCompat.ints()
. Many thanks to @andrey-shikhov for the great work!
Fixed Stream filter
causing infinite loop in some cases (issue #53)
Added mapToInt
and flatMapToInt
to Stream
Added stream
, or
methods to Optional
Added or
method to Exceptional
Stream getIterator
is now deprecated, use iterator()
instead
Removed method Stream.of(List)
. This may breaks binary compatibility!
LinkedList replaced with ArrayDeque in sample
, slidingWindow
methods for performance enhancement. Android 2.1 and 2.2 still uses LinkedList. See #61
Other fixes and optimizations
stream-test v1.1.1
Added OptionalIntMatcher
Added hasValue
and hasValueThat
methods to OptionalMatcher
Now streamTest
library version matches stream
version
v1.1.0
Fixed compatibility with Android 2.1. Thanks to @andrey-shikhov
Added map
method to Exceptional
Added throwable functions and safe
method to convert them into normal functions
Added select
method to Optional. Thanks to @xsveda
stream-test v1.0.1
Fixed Optional.isEmpty() matches against null value
Added StreamMatcher.hasElements()
Added OptionalMatcher for Mockito
v1.0.9
- Fixed non-RandomAccess List accessed by index. Thanks to @ypresto
- Added
select(Class)
method to filter stream by type. Thanks to @andrey-shikhov - Added
filterNot
method - Published
stream-test:1.0.0
artifact with Hamcrest matchers
v1.0.8
v1.0.7
- Added
toArray
methods. Thanks to @Archinamon ofRange
andofRangeClosed
is now deprecated, userange
andrangeClosed
instead (see Java 8IntStream
). Thanks to @ypresto for suggestion- Fixed stream
skip
laziness.
v1.0.6
- More general
reduce
interface. Thanks to @Wopple
Before:T reduce(T identity, BiFunction<T, T, T> accumulator)
Now:R reduce(R identity, BiFunction<? super R, ? super T, ? extends R> accumulator)
- Fixed incorrect Iterator implementation on
filter
andflatMap
operators, that breaksconcat
results. Thanks to @kotucz
v1.0.5
- Add
custom
method toStream
for apply custom operators. See CustomOperators,java. - Add
rangeClosed
,concat
methods toStream
- Minor javadocs fixes
v1.0.4
v1.0.3
- Add methods
groupingBy
,counting
,joining
with parameters (thanks to @fabioCollini) toCollectors
- Add
ThrowableSupplier
to use in lambda expressions without writing try/catch in its body - Add
Exceptional
to operate throwable blocks in functional way - Add
groupBy
and Scala-likesortBy
methods toStream
- Add
Stream.generate
andStream.iterate
methods