Class StaticDomNodeList

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

    class StaticDomNodeList
    extends java.util.AbstractList<DomNode>
    implements DomNodeList<DomNode>, java.io.Serializable
    An implementation of DomNodeList that is static.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<DomNode> elements_  
      • 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)
      int size()
      • Methods inherited from class java.util.AbstractList

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

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • 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, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Field Detail

      • elements_

        private final java.util.List<DomNode> elements_
    • Constructor Detail

      • StaticDomNodeList

        StaticDomNodeList​(java.util.List<DomNode> elements)
    • 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>
        Specified by:
        get in class java.util.AbstractList<DomNode>