Version 2.0.0
This release adds a number of new features and improvements on existing ones.
- Adds
stream()andparallelStream()methods to all collections to create Java 8 streams. - Adds JImmutableCollectors methods to allow immutable collections to be constructed using streams.
- Adds
keys()andvalues()methods to maps providing access to fast streams and iterators. - Adds
select()andreject()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>