is there any LinkedTreeMap implementation available in standard JDK or simple standalone library that support both sorting and insertion order? I found gridsim that has a LinkedTreeMap implementation. But seems it is a big library.
[UPDATE]
I want a Map which sorts elements based on keys which is Integer in my case and also gives me two kinds of Iterator based on:
Can you see the LinkedTreeMap of google-gson library?
This preserve the insertion order.
I also came across this free-standing library: http://tech.dolhub.com/Code/LinkedTree
However, note that the author states that the classes performance is not great compared with TreeMap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With