Class SiblingDomNodeList

  • All Implemented Interfaces:
    java.lang.Iterable<DomNode>, java.util.Collection<DomNode>, java.util.List<DomNode>, DomNodeList<DomNode>, org.w3c.dom.NodeList

    class SiblingDomNodeList
    extends java.util.AbstractSequentialList<DomNode>
    implements DomNodeList<DomNode>
    An implementation of DomNodeList that is much less expensive for iteration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private DomNode parent_  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DomNode get​(int index)
      int getLength()
      org.w3c.dom.Node item​(int index)
      java.util.ListIterator<DomNode> listIterator​(int index)
      int size()
      java.lang.String toString()
      • Methods inherited from class java.util.AbstractSequentialList

        add, addAll, iterator, remove, set
      • Methods inherited from class java.util.AbstractList

        add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Field Detail

      • parent_

        private final DomNode parent_
    • Constructor Detail

      • SiblingDomNodeList

        SiblingDomNodeList​(DomNode parent)
    • Method Detail

      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.w3c.dom.NodeList
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<DomNode>
        Specified by:
        size in interface java.util.List<DomNode>
        Specified by:
        size in class java.util.AbstractCollection<DomNode>
      • item

        public org.w3c.dom.Node item​(int index)
        Specified by:
        item in interface org.w3c.dom.NodeList
      • get

        public DomNode get​(int index)
        Specified by:
        get in interface java.util.List<DomNode>
        Overrides:
        get in class java.util.AbstractSequentialList<DomNode>
      • listIterator

        public java.util.ListIterator<DomNode> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<DomNode>
        Specified by:
        listIterator in class java.util.AbstractSequentialList<DomNode>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<DomNode>