Skip to content

Version 3.1.0 Released

Choose a tag to compare

@brianburton brianburton released this 16 Apr 15:41
· 274 commits to master since this release

Key features in this release include:

  • Dramatically reduces memory consumption of hash maps and sets (as created using JImmutables.map() and JImmutables.set()). Memory footprint of these collections is now very similar to that of standard JDK HashMap and HashSet.
  • Adds reverse() method to JImmutableList to allow efficient creation of a list with all elements in reverse order.
  • Adds isNonEmpty() methods to all collections.
  • Adds forEach() and forEachThrows() methods to JImmutableListMap and JImmutableSetMap.
  • Removes JImmutableList.insert(Iterable) because it made lists of collections cumbersome to work with. Use insertAll(Iterable) instead.
  • Removes the Nullable annotation from JImmutableArray.getValueOr().

Developer's Notes

Maven Coordinates

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