it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableBidirectionalIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
          extended by it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableBidirectionalIterator
All Implemented Interfaces:
BidirectionalIterator<java.lang.Integer>, IntBidirectionalIterator, IntIterator, ObjectBidirectionalIterator<java.lang.Integer>, ObjectIterator<java.lang.Integer>, java.util.Iterator<java.lang.Integer>
Enclosing class:
IntIterators

public static class IntIterators.UnmodifiableBidirectionalIterator
extends AbstractIntBidirectionalIterator

An unmodifiable wrapper class for bidirectional iterators.


Constructor Summary
IntIterators.UnmodifiableBidirectionalIterator(IntBidirectionalIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 java.lang.Integer next()
          Delegates to the corresponding type-specific method.
 int nextInt()
          Delegates to the corresponding generic method.
 java.lang.Integer previous()
          Delegates to the corresponding type-specific method.
 int previousInt()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
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.ints.IntIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

IntIterators.UnmodifiableBidirectionalIterator

public IntIterators.UnmodifiableBidirectionalIterator(IntBidirectionalIterator 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()

nextInt

public int nextInt()
Description copied from class: AbstractIntIterator
Delegates to the corresponding generic method.

Specified by:
nextInt in interface IntIterator
Overrides:
nextInt in class AbstractIntIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousInt

public int previousInt()
Description copied from class: AbstractIntBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousInt in interface IntBidirectionalIterator
Overrides:
previousInt in class AbstractIntBidirectionalIterator
Returns:
the previous element in the iteration.
See Also:
ListIterator.previous()

next

public java.lang.Integer next()
Description copied from class: AbstractIntIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface java.util.Iterator<java.lang.Integer>
Overrides:
next in class AbstractIntIterator

previous

public java.lang.Integer previous()
Description copied from class: AbstractIntBidirectionalIterator
Delegates to the corresponding type-specific method.

Specified by:
previous in interface BidirectionalIterator<java.lang.Integer>
Overrides:
previous in class AbstractIntBidirectionalIterator
Returns:
the previous element from the collection.
See Also:
ListIterator.previous()