Skip to content

Version 2.0.0

Choose a tag to compare

@brianburton brianburton released this 04 Nov 23:55
· 657 commits to master since this release

This release adds a number of new features and improvements on existing ones.

  • Adds stream() and parallelStream() methods to all collections to create Java 8 streams.
  • Adds JImmutableCollectors methods to allow immutable collections to be constructed using streams.
  • Adds keys() and values() methods to maps providing access to fast streams and iterators.
  • Adds select() and reject() methods to JImmutableList to simplify taking subsets of lists without creating a stream.
  • Adds reduce() method to all collections to simplify scanning contents of collections to compute a value without creating a stream.
  • Improves the efficiency of iterators for all collections.
  • Adds support for creating streams from Cursors.

This is the first release to require use of Java 8 or higher to use the library. The 1.9.1 release is still available for anyone using older versions of Java. Artifacts have been pushed to maven central.

    <dependency>
      <groupId>org.javimmutable</groupId>
      <artifactId>javimmutable-collections</artifactId>
      <version>2.0.0</version>
    </dependency>