next method

  1. @nullable
T next ()
@nullable

Returns the next element in the iteration.

@return the next element in the iteration @throws NoSuchElementException if the iteration has no more elements

Implementation

@nullable
T next();