-
- Enclosing interface:
- ComponentIterator<T extends ComponentIterator.Next>
public static interface ComponentIterator.Next
This 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, ornull
if there are no more components.
-
-
-
Method Detail
-
next
<N extends ComponentIterator.Next> N next()
Get the next component of the iteration, ornull
if 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
ComponentIterator
is 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 theReadableComponent
orWritableComponent
interfaces.- Returns:
- The next component in the iteration, or
null
if there are no more components.
-
-