Version 2.2.0
This release provides the following major improvements.
- Sorted map,
JImmutables.sortedMap(), implementation changed to use a B-Tree instead of a 2-3 Tree. The B-Tree implementation offers better performance and simpler code. - Hash map,
JImmutables.map(), implementation changed to use a simpler HAMT implementation that stores values inside interior nodes as well as in leaf nodes. The new implementation offers significant performance improvements and some memory savings. - Sparse array,
JImmutables.array(), implementation simplified by removing the extra methods previously used by hash maps. - All collections now implement Serializable interface.
- All collections now provide methods to create Stream Collector implementations that can be used to construct collections directly from a Stream.
More information about the new maps is available in a blog post.
<dependency>
<groupId>org.javimmutable</groupId>
<artifactId>javimmutable-collections</artifactId>
<version>2.2.0</version>
</dependency>