Package org.appliedenergistics.yoga.node
Class LayoutableChildren.LayoutIterator
java.lang.Object
org.appliedenergistics.yoga.node.LayoutableChildren.LayoutIterator
- Enclosing class:
LayoutableChildren
Iterator implementation for LayoutableChildren that handles Display.CONTENTS nodes.
Includes C++-style current() method for accessing the current element without advancing.
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutIterator
(YogaNode node, int childIndex) Creates a new iterator starting at the specified node and child index. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
LayoutIterator
Creates a new iterator starting at the specified node and child index.- Parameters:
node
- The node to iterate children fromchildIndex
- The starting child index
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
current
Returns the current element without advancing the iterator. This provides C++-style access to the current element.- Returns:
- The current element
- Throws:
NoSuchElementException
- if there is no current element
-
equals
Checks if this iterator equals another iterator. -
hashCode
public int hashCode() -
copy
-