Package io.sf.carte.doc.dom
Interface ElementList
- All Superinterfaces:
ExtendedNodeList<DOMElement>
,Iterable<DOMElement>
,NodeList
-
Method Summary
Modifier and TypeMethodDescriptionitem
(int index) Given the subset of child nodes that are elements, access the element at theindex
position of this list, with the index starting with0
.Methods inherited from interface io.sf.carte.doc.dom.ExtendedNodeList
contains, isEmpty
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
item
Given the subset of child nodes that are elements, access the element at theindex
position of this list, with the index starting with0
.For better performance, please use an iterator instead of this method.
- Specified by:
item
in interfaceExtendedNodeList<DOMElement>
- Specified by:
item
in interfaceNodeList
- Parameters:
index
- the index.- Returns:
- the element at the given position, or
null
if the specified index is beyond the last item or less than zero.
-