it.unimi.dsi.fastutil.objects
Class AbstractObjectListIterator<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>
All Implemented Interfaces:
BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, ObjectListIterator<K>, Iterator<K>, ListIterator<K>
Direct Known Subclasses:
ObjectIterators.EmptyIterator, ObjectIterators.UnmodifiableListIterator

public abstract class AbstractObjectListIterator<K>
extends AbstractObjectBidirectionalIterator<K>
implements ObjectListIterator<K>

An abstract class facilitating the creation of type-specific list iterators.

This class provides trivial type-specific implementations of set() and add() which throw an UnsupportedOperationException. For primitive types, it also provides a trivial implementation of set() and add() that just invokes the type-specific one.

See Also:
ListIterator

Constructor Summary
protected AbstractObjectListIterator()
           
 
Method Summary
 void add(K k)
          This method just throws an UnsupportedOperationException.
 void set(K k)
          This method just throws an UnsupportedOperationException.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 

Constructor Detail

AbstractObjectListIterator

protected AbstractObjectListIterator()
Method Detail

set

public void set(K k)
This method just throws an UnsupportedOperationException.

Specified by:
set in interface ListIterator<K>

add

public void add(K k)
This method just throws an UnsupportedOperationException.

Specified by:
add in interface ListIterator<K>


Copyright © 2011. All Rights Reserved.