it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableListIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.longs.AbstractLongIterator
      extended byit.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
          extended byit.unimi.dsi.fastutil.longs.AbstractLongListIterator
              extended byit.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator, Iterator, ListIterator, LongBidirectionalIterator, LongIterator, LongListIterator
Enclosing class:
LongIterators

public static class LongIterators.UnmodifiableListIterator
extends AbstractLongListIterator

An unmodifiable wrapper class for list iterators.


Constructor Summary
LongIterators.UnmodifiableListIterator(LongListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
          Delegates to the corresponding type-specific method.
 int nextIndex()
           
 long nextLong()
          Returns the next element as a primitive type.
 Object previous()
          Returns the previous element from the collection.
 int previousIndex()
           
 long previousLong()
          Returns the previous element as a primitive type.
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongIterator
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.longs.LongBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
skip
 

Constructor Detail

LongIterators.UnmodifiableListIterator

public LongIterators.UnmodifiableListIterator(LongListIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

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


nextLong

public long nextLong()
Description copied from interface: LongIterator
Returns the next element as a primitive type.

Specified by:
nextLong in interface LongIterator
Overrides:
nextLong in class AbstractLongIterator

previousLong

public long previousLong()
Description copied from interface: LongBidirectionalIterator
Returns the previous element as a primitive type.

Specified by:
previousLong in interface LongBidirectionalIterator
Overrides:
previousLong in class AbstractLongBidirectionalIterator

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

next

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

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

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 AbstractLongBidirectionalIterator