it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.chars.AbstractCharIterator
it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableIterator
- All Implemented Interfaces:
- CharIterator, Iterator<Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableIterator
- extends AbstractCharIterator
An unmodifiable wrapper class for iterators.
Method Summary |
boolean |
hasNext()
|
Character |
next()
Delegates to the corresponding type-specific method. |
char |
nextChar()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final CharIterator i
CharIterators.UnmodifiableIterator
public CharIterators.UnmodifiableIterator(CharIterator i)
hasNext
public boolean hasNext()
nextChar
public char nextChar()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding generic method.
- Specified by:
nextChar
in interface CharIterator
- Overrides:
nextChar
in class AbstractCharIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
next
public Character next()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Character>
- Overrides:
next
in class AbstractCharIterator
Copyright © 2011. All Rights Reserved.