Skip to content

Releases: aNNiMON/Lightweight-Stream-API

v1.1.2

23 Aug 09:06
Compare
Choose a tag to compare

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

21 Jul 20:06
Compare
Choose a tag to compare

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

30 Jun 17:30
Compare
Choose a tag to compare

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

14 Apr 09:00
Compare
Choose a tag to compare

v1.0.8

11 Mar 14:09
Compare
Choose a tag to compare
  • Added Stream.zip function. Thanks to @ypresto
  • Added chunkBy and slidingWindow operators. Thanks to @solderra
  • Added takeWhile and dropWhile operators
  • Added Stream.empty()
  • Added Function.Util.compose
  • Fixed stream sorted and distinct laziness
  • Minor generics and javadocs fixes

v1.0.7

03 Mar 10:47
Compare
Choose a tag to compare
  • Added toArray methods. Thanks to @Archinamon
  • ofRange and ofRangeClosed is now deprecated, use range and rangeClosed instead (see Java 8 IntStream). Thanks to @ypresto for suggestion
  • Fixed stream skip laziness.

v1.0.6

02 Feb 19:34
Compare
Choose a tag to compare
  • 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 and flatMap operators, that breaks concat results. Thanks to @kotucz

v1.0.5

22 Nov 16:23
Compare
Choose a tag to compare
  • Add custom method to Stream for apply custom operators. See CustomOperators,java.
  • Add rangeClosed, concat methods to Stream
  • Minor javadocs fixes

v1.0.4

07 Nov 18:44
Compare
Choose a tag to compare
  • Add methods toCollection, toMap, mapping, reducing, collectingAndThen to Collectors
  • Add JavaDocs
  • Small optimizations and other fixes

v1.0.3

01 Sep 10:35
Compare
Choose a tag to compare
  • Add methods groupingBy, counting, joining with parameters (thanks to @fabioCollini) to Collectors
  • 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-like sortBy methods to Stream
  • Add Stream.generate and Stream.iterate methods