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, Iterator<Boolean>
Enclosing class:
BooleanIterators

public static class BooleanIterators.UnmodifiableIterator
extends AbstractBooleanIterator

An unmodifiable wrapper class for iterators.


Field Summary
protected  BooleanIterator i
           
 
Constructor Summary
BooleanIterators.UnmodifiableIterator(BooleanIterator i)
           
 
Method Summary
 boolean hasNext()
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

protected final BooleanIterator i
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 Boolean next()
Description copied from class: AbstractBooleanIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator<Boolean>
Overrides:
next in class AbstractBooleanIterator


Copyright © 2011. All Rights Reserved.