Skip to content

com.annimon.stream 1.2.2 Latest version

Install 1/2: Add this to pom.xml:
Learn more about Maven or Gradle
<dependency>
  <groupId>com.annimon</groupId>
  <artifactId>stream</artifactId>
  <version>1.2.2</version>
</dependency>
Install 2/2: Run via command line
$ mvn install

About this package

  • Added teeing collector (from Java 12)
  • Added mapMulti operator for all streams and mapMultiToInt, mapMultiToLong, mapMultiToDouble to object Stream (from Java 16)
  • Added findFirstOrElse(defaultValue), append(T), prepend(T) to Stream (thanks to @wjtxyz)
  • concat now supports 3+ streams or iterators
  • Added SpinedBuffer for objects. SpinedBuffer now public, but it slightly differs from Java 8 API.
  • Fixed unnecessary unboxing of dropWhile, takeUntil, filterIndexed, mapIndexed and scan operators in primitive streams
  • Methods marked with nullability annotations
  • Many other improvements