3 Replies Latest reply on Feb 19, 2013 1:20 PM by vsazanovich

    Enhanced java.util.TreeMap to access and retrieve elements by index

      Greetings, fellow programmers,
      I have more of a feedback request rather than a question. I took the source code of java.util.TreeMap and enhanced it to support accessing and retrieving elements by index (offset from the beginning of the sorted key set).
      You can find the project and details here: http://code.google.com/p/indexed-tree-map/

      My questions are:
      - what open source license (most liberal) can I use when basing some work on JDK's source code
      - what pros/cons (mostly cons) do you see in this implementation?
      - if these classes (IndexedTreeMap, IndexedTreeSet) are ever to be included in the JDK what is the right way to go?

      I faced the index problem myself and implemented this for a project I'm working on, while looking for a solution I found that many people have the same problem. Just look up questions on stackoverflow that are related to SortedTree/SortedSet and List or index position.

      Edited by: user1997351 on 11.02.2013 02:19

      Edited by: user1997351 on 11.02.2013 02:19