it.unimi.dsi.fastutil.objects
Class ObjectIterators.UnmodifiableListIterator<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.AbstractObjectListIterator<K>
              extended by it.unimi.dsi.fastutil.objects.ObjectIterators.UnmodifiableListIterator<K>
All Implemented Interfaces:
BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, ObjectListIterator<K>, java.util.Iterator<K>, java.util.ListIterator<K>
Enclosing class:
ObjectIterators

public static class ObjectIterators.UnmodifiableListIterator<K>
extends AbstractObjectListIterator<K>

An unmodifiable wrapper class for list iterators.


Constructor Summary
ObjectIterators.UnmodifiableListIterator(ObjectListIterator<K> i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 K next()
           
 int nextIndex()
           
 K previous()
          Returns the previous element from the collection.
 int previousIndex()
           
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectListIterator
add, set
 
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 java.util.ListIterator
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 

Constructor Detail

ObjectIterators.UnmodifiableListIterator

public ObjectIterators.UnmodifiableListIterator(ObjectListIterator<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()

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()