it.unimi.dsi.fastutil.floats
Class FloatIterators.UnmodifiableListIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.floats.AbstractFloatIterator
      extended byit.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
          extended byit.unimi.dsi.fastutil.floats.AbstractFloatListIterator
              extended byit.unimi.dsi.fastutil.floats.FloatIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator, FloatBidirectionalIterator, FloatIterator, FloatListIterator, Iterator, ListIterator
Enclosing class:
FloatIterators

public static class FloatIterators.UnmodifiableListIterator
extends AbstractFloatListIterator

An unmodifiable wrapper class for list iterators.


Constructor Summary
FloatIterators.UnmodifiableListIterator(FloatListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
          Delegates to the corresponding type-specific method.
 float nextFloat()
          Returns the next element as a primitive type.
 int nextIndex()
           
 Object previous()
          Returns the previous element from the collection.
 float previousFloat()
          Returns the previous element as a primitive type.
 int previousIndex()
           
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
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.floats.FloatBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
skip
 

Constructor Detail

FloatIterators.UnmodifiableListIterator

public FloatIterators.UnmodifiableListIterator(FloatListIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

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


nextFloat

public float nextFloat()
Description copied from interface: FloatIterator
Returns the next element as a primitive type.

Specified by:
nextFloat in interface FloatIterator
Overrides:
nextFloat in class AbstractFloatIterator

previousFloat

public float previousFloat()
Description copied from interface: FloatBidirectionalIterator
Returns the previous element as a primitive type.

Specified by:
previousFloat in interface FloatBidirectionalIterator
Overrides:
previousFloat in class AbstractFloatBidirectionalIterator

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

next

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

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

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 AbstractFloatBidirectionalIterator