it.unimi.dsi.fastutil.objects
Class ObjectIterators.UnmodifiableListIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.objects.AbstractObjectIterator
      extended byit.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator
          extended byit.unimi.dsi.fastutil.objects.AbstractObjectListIterator
              extended byit.unimi.dsi.fastutil.objects.ObjectIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator, Iterator, ListIterator, ObjectBidirectionalIterator, ObjectIterator, ObjectListIterator
Enclosing class:
ObjectIterators

public static class ObjectIterators.UnmodifiableListIterator
extends AbstractObjectListIterator

An unmodifiable wrapper class for list iterators.


Constructor Summary
ObjectIterators.UnmodifiableListIterator(ObjectListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Object next()
           
 int nextIndex()
           
 Object previous()
          Returns the previous element as a primitive type.
 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 i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

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


next

public Object next()

previous

public Object previous()
Description copied from interface: ObjectBidirectionalIterator
Returns the previous element as a primitive type.


nextIndex

public int nextIndex()

previousIndex

public int previousIndex()