- All Superinterfaces:
- java.util.Iterator<T>
- All Known Subinterfaces:
- InfiniteCharIterator, InfiniteDoubleIterator, InfiniteIntIterator, InfiniteLongIterator
- All Known Implementing Classes:
- RecursiveIterator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface InfiniteIterator<T>
extends java.util.Iterator<T>
Base interface for Iterator
s that never run out of elements. The Iterator.hasNext()
method always
returns true
for these iterators.