0.2.0 "Created Equal"
This release is a bit more of a breaking change than usual, but only for some usage. In earlier releases, you would override locateKey()
if you wanted to change the behavior for equality comparison, and this needed a bunch of copy/paste of existing code from the docs. Now, there's a more elegant approach in the equate()
method, which is used wherever Object keys need to be compared, and is present in all the object-keyed maps and sets. This makes it so place()
and equate()
are all you need to alter in subclasses that need different comparison of keys. You can still use code that overrides locateKey(), but it won't affect any other places that compare keys to each other, and changing to use equate()
is encouraged and should result in smaller code. This also includes some optimizations being worked on by the Kryo project, which remain relevant here, and help performance in many cases.