Posted By:
Jani_Kaarela
Posted On:
Friday, September 17, 2004 03:57 AM
What exactly is the point in doing that? The idea of TreeMap is to be quickly navigable and thus have very efficient containsKey, get, put and remove operations, which is why the objects in it have to be sorted.
If you need a tree-like structure without the functionality (and it's related cost) of TreeMap, it is fairly trivial to implement it from scratch.