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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
char
nextChar()
Returns the next element as a primitive type.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining, next, skip
-
-
-
-
Constructor Detail
-
UnmodifiableIterator
public UnmodifiableIterator(CharIterator i)
-
-
Method Detail
-
nextChar
public char nextChar()
Description copied from interface:CharIterator
Returns the next element as a primitive type.- Specified by:
nextChar
in interfaceCharIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
-