Interface ComponentIterator.Next

    • Method Detail

      • next

        <N extends ComponentIterator.Next> N next()
        Get the next component of the iteration, or null 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 implements ComponentIterator.Next, and one of the ReadableComponent or WritableComponent interfaces.
        Returns:
        The next component in the iteration, or null if there are no more components.