Package org.basex.query.iter
Class BasicNodeIter
- java.lang.Object
-
- org.basex.query.iter.Iter
-
- org.basex.query.iter.NodeIter
-
- org.basex.query.iter.BasicNodeIter
-
- Direct Known Subclasses:
DBNodeIter
public abstract class BasicNodeIter extends NodeIter implements Iterable<ANode>
Basic node iterator, throwing no exceptions. This class also implements theIterable
interface, which is why all of its values can also be retrieved via enhanced for(for-each) loops. Note, however, that thenext()
method will give you better performance.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Field Summary
Fields Modifier and Type Field Description static BasicNodeIter
EMPTY
Empty iterator.
-
Constructor Summary
Constructors Constructor Description BasicNodeIter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Iterator<ANode>
iterator()
abstract ANode
next()
Returns the next item.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final BasicNodeIter EMPTY
Empty iterator.
-
-