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

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

public static class LongIterators.UnmodifiableBidirectionalIterator
extends AbstractLongBidirectionalIterator

An unmodifiable wrapper class for bidirectional iterators.


Constructor Summary
LongIterators.UnmodifiableBidirectionalIterator(LongBidirectionalIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
          Delegates to the corresponding type-specific method.
 long nextLong()
          Returns the next element as a primitive type.
 Object previous()
          Delegates to the corresponding type-specific method.
 long previousLong()
          Delegates to the corresponding generic method.
 
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 it.unimi.dsi.fastutil.longs.LongIterator
skip
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

LongIterators.UnmodifiableBidirectionalIterator

public LongIterators.UnmodifiableBidirectionalIterator(LongBidirectionalIterator 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()

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

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

next

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

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

previous

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

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