Package org.graph4j.util
Interface IntIterator
- All Known Implementing Classes:
LexBFSIteratorInt,MaximumCardinalityIterator,TopologicalOrderIterator
public interface IntIterator
An iterator over a collection of primitive integers.
- Author:
- Cristian Frăsinaru
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext()Returnstrueif the iteration has more elements.- Returns:
trueif the iteration has more elements,falseotherwise.
-
next
int next()Returns the next element in the iteration.- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- if the iteration has no more elements.
-
remove
default void remove()Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call tonext().- Throws:
UnsupportedOperationException- if theremoveoperation is not supported by this iterator.
-