New utility methods to create
HashMapto hold a given number of elements. These are useful as lambda method references, where performing the typical computation inline would be unnecessarily verbose.
IdentityKeynow has a
NULLconstant, along with static factory methods to use this constant for
SortedPropertiescompatibility with Java 9+ by also sorting
getKeyComparator()method to support different sort orders.