it.unimi.dsi.fastutil.booleans
Class BooleanIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
      extended by it.unimi.dsi.fastutil.booleans.BooleanIterators.UnmodifiableIterator
All Implemented Interfaces:
BooleanIterator, java.util.Iterator<java.lang.Boolean>
Enclosing class:
BooleanIterators

public static class BooleanIterators.UnmodifiableIterator
extends AbstractBooleanIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
BooleanIterators.UnmodifiableIterator(BooleanIterator i)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Boolean next()
          Delegates to the corresponding type-specific method.
 boolean nextBoolean()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanIterators.UnmodifiableIterator

public BooleanIterators.UnmodifiableIterator(BooleanIterator i)
Method Detail

hasNext

public boolean hasNext()

nextBoolean

public boolean nextBoolean()
Description copied from class: AbstractBooleanIterator
Delegates to the corresponding generic method.

Specified by:
nextBoolean in interface BooleanIterator
Overrides:
nextBoolean in class AbstractBooleanIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

public java.lang.Boolean next()
Description copied from class: AbstractBooleanIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface java.util.Iterator<java.lang.Boolean>
Overrides:
next in class AbstractBooleanIterator