it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongIterator
it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableIterator
- All Implemented Interfaces:
- LongIterator, Iterator<Long>
- Enclosing class:
- LongIterators
public static class LongIterators.UnmodifiableIterator
- extends AbstractLongIterator
An unmodifiable wrapper class for iterators.
Method Summary |
boolean |
hasNext()
|
Long |
next()
Delegates to the corresponding type-specific method. |
long |
nextLong()
Delegates to the corresponding generic method. |
LongIterators.UnmodifiableIterator
public LongIterators.UnmodifiableIterator(LongIterator i)
hasNext
public boolean hasNext()
nextLong
public long nextLong()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding generic method.
- Specified by:
nextLong
in interface LongIterator
- Overrides:
nextLong
in class AbstractLongIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
next
public Long next()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Long>
- Overrides:
next
in class AbstractLongIterator