it.unimi.dsi.fastutil.shorts
Class AbstractShortListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.shorts.AbstractShortIterator
      extended by it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
          extended by it.unimi.dsi.fastutil.shorts.AbstractShortListIterator
All Implemented Interfaces:
BidirectionalIterator<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortIterator, ShortListIterator, Iterator<Short>, ListIterator<Short>
Direct Known Subclasses:
ShortIterators.EmptyIterator, ShortIterators.UnmodifiableListIterator

public abstract class AbstractShortListIterator
extends AbstractShortBidirectionalIterator
implements ShortListIterator

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

Method Summary
 void add(short k)
          This method just throws an UnsupportedOperationException.
 void add(Short ok)
          Delegates to the corresponding type-specific method.
 void set(short k)
          This method just throws an UnsupportedOperationException.
 void set(Short ok)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
back, previous, previousShort
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortIterator
next, nextShort, 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
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortBidirectionalIterator
back, previousShort
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
nextShort, skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 

Method Detail

set

public void set(Short ok)
Delegates to the corresponding type-specific method.

Specified by:
set in interface ListIterator<Short>

add

public void add(Short ok)
Delegates to the corresponding type-specific method.

Specified by:
add in interface ListIterator<Short>

set

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

Specified by:
set in interface ShortListIterator

add

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

Specified by:
add in interface ShortListIterator