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

java.lang.Object
  extended byit.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
      extended byit.unimi.dsi.fastutil.booleans.AbstractBooleanBidirectionalIterator
          extended byit.unimi.dsi.fastutil.booleans.AbstractBooleanListIterator
              extended byit.unimi.dsi.fastutil.booleans.BooleanIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator, BooleanBidirectionalIterator, BooleanIterator, BooleanListIterator, Iterator, ListIterator
Enclosing class:
BooleanIterators

public static class BooleanIterators.UnmodifiableListIterator
extends AbstractBooleanListIterator

An unmodifiable wrapper class for list iterators.


Constructor Summary
BooleanIterators.UnmodifiableListIterator(BooleanListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
          Delegates to the corresponding type-specific method.
 boolean nextBoolean()
          Returns the next element as a primitive type.
 int nextIndex()
           
 Object previous()
          Returns the previous element from the collection.
 boolean previousBoolean()
          Returns the previous element as a primitive type.
 int previousIndex()
           
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBidirectionalIterator
back
 
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
 
Methods inherited from interface java.util.ListIterator
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterator
skip
 

Constructor Detail

BooleanIterators.UnmodifiableListIterator

public BooleanIterators.UnmodifiableListIterator(BooleanListIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()
Description copied from interface: BidirectionalIterator
Returns whether there is a previous element.


nextBoolean

public boolean nextBoolean()
Description copied from interface: BooleanIterator
Returns the next element as a primitive type.

Specified by:
nextBoolean in interface BooleanIterator
Overrides:
nextBoolean in class AbstractBooleanIterator

previousBoolean

public boolean previousBoolean()
Description copied from interface: BooleanBidirectionalIterator
Returns the previous element as a primitive type.

Specified by:
previousBoolean in interface BooleanBidirectionalIterator
Overrides:
previousBoolean in class AbstractBooleanBidirectionalIterator

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

next

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

Specified by:
next in interface ListIterator
Overrides:
next in class AbstractBooleanIterator

previous

public Object previous()
Description copied from interface: BidirectionalIterator
Returns the previous element from the collection.

Specified by:
previous in interface ListIterator
Overrides:
previous in class AbstractBooleanBidirectionalIterator