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

Adds a Collections wrapper around the w3c NodeList

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • List
    • 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. NodeListAsCollection.java
          3 kB
          Hasan Diwan
        2. TestNodeListAsCollection.java
          4 kB
          Hasan Diwan
        3. patch.txt
          10 kB
          Thomas Vahrst
        4. nodelistAsIterable.patch
          14 kB
          Thomas Vahrst

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: