it.unimi.dsi.fastutil.shorts
Class AbstractShortListIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
it.unimi.dsi.fastutil.shorts.AbstractShortListIterator
- All Implemented Interfaces:
- BidirectionalIterator, Iterator, ListIterator, ShortBidirectionalIterator, ShortIterator, ShortListIterator
- 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
set
public void set(Object ok)
- Delegates to the corresponding type-specific method.
- Specified by:
set
in interface ListIterator
add
public void add(Object ok)
- Delegates to the corresponding type-specific method.
- Specified by:
add
in interface ListIterator
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