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