Results 1 to 2 of 2
  1. #1
    geniot is offline Member
    Join Date
    Feb 2013
    Rep Power

    Default 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: indexed-tree-map - JDK's enhanced red-black tree map algorithm to support access by index - Google Project Hosting

    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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

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

    Moved from Advanced Java.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 08-14-2012, 06:31 PM
  2. Replies: 0
    Last Post: 04-26-2012, 11:50 AM
  3. Writing the elements of a TreeMap to a text file
    By busdude in forum New To Java
    Replies: 0
    Last Post: 10-03-2011, 03:05 AM
  4. Displaying array elements as null except the last index
    By vasavi.singh in forum Advanced Java
    Replies: 2
    Last Post: 04-06-2009, 11:42 AM
  5. Sorting Elements in a TreeMap
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-12-2008, 08:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts