Package com.helger.xml.microdom.util
Class MicroRecursiveIterator
java.lang.Object
com.helger.xml.microdom.util.MicroRecursiveIterator
- All Implemented Interfaces:
com.helger.commons.collection.impl.ICommonsIterable<IMicroNode>,com.helger.commons.collection.iterate.IIterableIterator<IMicroNode>,Iterable<IMicroNode>,Iterator<IMicroNode>
public class MicroRecursiveIterator
extends Object
implements com.helger.commons.collection.iterate.IIterableIterator<IMicroNode>
Class for recursively visiting all children of an
IMicroNode. It
includes the initial node in the visitation.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MicroRecursiveIteratorCreate aMicroRecursiveIteratorthat only iterates the child nodes of the given node.booleanhasNext()next()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountMethods inherited from interface com.helger.commons.collection.iterate.IIterableIterator
iterator, withFilter, withMapperMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
MicroRecursiveIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<IMicroNode>
-
next
- Specified by:
nextin interfaceIterator<IMicroNode>
-
toString
-
createChildNodeIterator
Create aMicroRecursiveIteratorthat only iterates the child nodes of the given node.- Parameters:
aNode- The node to iterate the children from. May not benull.- Returns:
- Never
null. - Since:
- 10.1.7
-