it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.chars.AbstractCharIterator
      extended by it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableIterator
All Implemented Interfaces:
CharIterator, java.util.Iterator<java.lang.Character>
Enclosing class:
CharIterators

public static class CharIterators.UnmodifiableIterator
extends AbstractCharIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
CharIterators.UnmodifiableIterator(CharIterator i)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Character next()
          Delegates to the corresponding type-specific method.
 char nextChar()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharIterators.UnmodifiableIterator

public CharIterators.UnmodifiableIterator(CharIterator i)
Method Detail

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 java.lang.Character next()
Description copied from class: AbstractCharIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface java.util.Iterator<java.lang.Character>
Overrides:
next in class AbstractCharIterator