trove4j

Why not allow an external interface to override hashCode/equals for a HashMap?

With a TreeMap it's trivial to bypass the keys' natural ordering using a Comparable. HashMaps however cannot be controlled in this manner. I suspect it would be both easy and useful to design an interface and to retrofit this into HashMap (or a new class)? Something like this, except with better names: interface Hasharator<T> { ...

How to return an unmodifiable view of a Java Trove collection?

I'd like to put unmodifiable wrappers around some of the Trove collections: I've checked the Trove documentation and I cannot seem to find an easy way to do it (I may have overlooked something obvious). So as of now every time I need such an unmodifiable wrapper I'm extending the Trove collection (for example TIntLongHashMap) and delega...