it.unimi.dsi.fastutil.objects
Class ObjectIterators.UnmodifiableBidirectionalIterator<K>

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractObjectIterator<K>
      extended by it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator<K>
          extended by it.unimi.dsi.fastutil.objects.ObjectIterators.UnmodifiableBidirectionalIterator<K>
All Implemented Interfaces:
BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, Iterator<K>
Enclosing class:
ObjectIterators

public static class ObjectIterators.UnmodifiableBidirectionalIterator<K>
extends AbstractObjectBidirectionalIterator<K>

An unmodifiable wrapper class for bidirectional iterators.


Constructor Summary
ObjectIterators.UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 K next()
           
 K previous()
          Returns the previous element from the collection.
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectIterator
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.objects.ObjectIterator
skip
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

ObjectIterators.UnmodifiableBidirectionalIterator

public ObjectIterators.UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> 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()

next

public K next()

previous

public K previous()
Description copied from interface: BidirectionalIterator
Returns the previous element from the collection.

Returns:
the previous element from the collection.
See Also:
ListIterator.previous()