it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableListIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.shorts.AbstractShortIterator
      extended byit.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
          extended byit.unimi.dsi.fastutil.shorts.AbstractShortListIterator
              extended byit.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator, Iterator, ListIterator, ShortBidirectionalIterator, ShortIterator, ShortListIterator
Enclosing class:
ShortIterators

public static class ShortIterators.UnmodifiableListIterator
extends AbstractShortListIterator

An unmodifiable wrapper class for list iterators.


Constructor Summary
ShortIterators.UnmodifiableListIterator(ShortListIterator 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()
           
 short nextShort()
          Returns the next element as a primitive type.
 Object previous()
          Returns the previous element from the collection.
 int previousIndex()
           
 short previousShort()
          Returns the previous element as a primitive type.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortIterator
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.shorts.ShortBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
skip
 

Constructor Detail

ShortIterators.UnmodifiableListIterator

public ShortIterators.UnmodifiableListIterator(ShortListIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

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


nextShort

public short nextShort()
Description copied from interface: ShortIterator
Returns the next element as a primitive type.

Specified by:
nextShort in interface ShortIterator
Overrides:
nextShort in class AbstractShortIterator

previousShort

public short previousShort()
Description copied from interface: ShortBidirectionalIterator
Returns the previous element as a primitive type.

Specified by:
previousShort in interface ShortBidirectionalIterator
Overrides:
previousShort in class AbstractShortBidirectionalIterator

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

next

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

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

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 AbstractShortBidirectionalIterator