Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-165

Filtered Maps, Lists, and Sets

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 3.1
    • None
    • List, Map, Set
    • None
    • Operating System: other
      Platform: Other

    • 29829

    Description

      In the project I work I have found that it would be efficient (at a small cost
      of memory) to use filtered maps, lists, and sets instead of creating a new copy
      of the decorated entities that contains only the filtered elements.

      To begin with I have implemented a FilteredMap and plan to implement
      FilteredList and FilteredSet. I will post the code for these in a couple of
      days and it would be great if Collections library could accept these contributions.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--FilteredCollection.java
          6 kB
          Venkatesh Prasad Ranganath
        2. ASF.LICENSE.NOT.GRANTED--FilteredList.java
          5 kB
          Venkatesh Prasad Ranganath
        3. ASF.LICENSE.NOT.GRANTED--FilteredListIterator.java
          3 kB
          Venkatesh Prasad Ranganath
        4. ASF.LICENSE.NOT.GRANTED--FilteredMap.java
          9 kB
          Venkatesh Prasad Ranganath
        5. ASF.LICENSE.NOT.GRANTED--FilteredSet.java
          3 kB
          Venkatesh Prasad Ranganath

        Activity

          People

            Unassigned Unassigned
            comfortably007numb-python@yahoo.com Venkatesh Prasad Ranganath
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: