Class CharIterators.UnmodifiableIterator
- java.lang.Object
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
-
- org.codelibs.jhighlight.fastutil.chars.CharIterators.UnmodifiableIterator
-
- All Implemented Interfaces:
Iterator<Character>,CharIterator
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableIterator extends AbstractCharIterator
An unmodifiable wrapper class for iterators.
-
-
Field Summary
Fields Modifier and Type Field Description protected CharIteratori
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(CharIterator i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Characternext()Delegates to the corresponding type-specific method.charnextChar()Delegates to the corresponding generic method.-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
remove, skip
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
i
protected final CharIterator i
-
-
Constructor Detail
-
UnmodifiableIterator
public UnmodifiableIterator(CharIterator i)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
nextChar
public char nextChar()
Description copied from class:AbstractCharIteratorDelegates to the corresponding generic method.- Specified by:
nextCharin interfaceCharIterator- Overrides:
nextCharin classAbstractCharIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
next
public Character next()
Description copied from class:AbstractCharIteratorDelegates to the corresponding type-specific method.- Specified by:
nextin interfaceIterator<Character>- Overrides:
nextin classAbstractCharIterator
-
-