Interface IBmLongIterator
-
- All Known Implementing Classes:
BmConcatLongIterator,BmEmptyLongIterator,BmLongArrayIterator
public interface IBmLongIteratorAnalog of Iterator class but for long values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Returnstrueif the iteration has more elements.longnext()Returns the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Returnstrueif the iteration has more elements. (In other words, returnstrueifnext()would return an element rather than throwing an exception.)- Returns:
trueif the iteration has more elements
-
next
long next()
Returns the next element in the iteration.- Returns:
- the next element in the iteration
- Throws:
NoSuchElementException- if the iteration has no more elements
-
-