-
- Enclosing interface:
- ComponentIterator<T extends ComponentIterator.Next>
public static interface ComponentIterator.NextThis interface exposes external iteration on components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <N extends ComponentIterator.Next>
Nnext()Get the next component of the iteration, ornullif there are no more components.
-
-
-
Method Detail
-
next
<N extends ComponentIterator.Next> N next()
Get the next component of the iteration, ornullif there are no more components.The returned object, if any, will be of the same type as this object, and would typically be assigned to the same variable.
Iteration is only valid while the
ComponentIteratoris open. Calling this method after the associated component iterator has been closed may result in undefined behaviour.- Type Parameters:
N- A type that implementsComponentIterator.Next, and one of theReadableComponentorWritableComponentinterfaces.- Returns:
- The next component in the iteration, or
nullif there are no more components.
-
-