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

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

public static class ShortIterators.UnmodifiableBidirectionalIterator
extends AbstractShortBidirectionalIterator

An unmodifiable wrapper class for bidirectional iterators.


Constructor Summary
ShortIterators.UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
          Delegates to the corresponding type-specific method.
 short nextShort()
          Returns the next element as a primitive type.
 Object previous()
          Delegates to the corresponding type-specific method.
 short previousShort()
          Delegates to the corresponding generic method.
 
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 it.unimi.dsi.fastutil.shorts.ShortIterator
skip
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

ShortIterators.UnmodifiableBidirectionalIterator

public ShortIterators.UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

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

Returns:
whether there is a previous element.
See Also:
ListIterator.hasPrevious()

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 class: AbstractShortBidirectionalIterator
Delegates to the corresponding generic method.

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

next

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

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

previous

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

Specified by:
previous in interface BidirectionalIterator
Overrides:
previous in class AbstractShortBidirectionalIterator