XPathNodes (Java SE 10 & JDK 10 )
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Nodeget(int index)Returns a Node at the specified position
Iterator<Node>iterator()Returns an iterator of the Nodes.
intsize()Returns the number of items in the result
-
Methods declared in interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
int size()
Returns the number of items in the result
- Returns:
- The number of items in the result
-
get
Node get(int index) throws XPathException
Returns a Node at the specified position
- Parameters:
index- Index of the element to return.- Returns:
- The Node at the specified position.
- Throws:
XPathException- If the index is out of range (index < 0 || index >= size())
-
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.