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

Adds a Collections wrapper around the w3c NodeList

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: List
    • Labels:
      None

      Description

      org.w3c.dom.NodeList is defined as an "abstract collection of Nodes" and java.util.List is defined as "An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.". It seemed similar enough, so I did an implementation of the useful methods, while throwing the appropriate exception when the method wouldn't make sense.

        Attachments

        1. nodelistAsIterable.patch
          14 kB
          Thomas Vahrst
        2. patch.txt
          10 kB
          Thomas Vahrst
        3. TestNodeListAsCollection.java
          4 kB
          Hasan Diwan
        4. NodeListAsCollection.java
          3 kB
          Hasan Diwan

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hdiwan Hasan Diwan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: