Package it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableIterator
- All Implemented Interfaces:
CharIterator,Iterator<Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableIterator extends Object implements CharIterator
An unmodifiable wrapper class for iterators.
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(CharIterator i) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining, next, skip
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext() -
nextChar
public char nextChar()Description copied from interface:CharIteratorReturns the next element as a primitive type.- Specified by:
nextCharin interfaceCharIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-