it.unimi.dsi.fastutil.objects
Class AbstractObjectBigListIterator<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.AbstractObjectBigListIterator<K>
All Implemented Interfaces:
BidirectionalIterator<K>, BigListIterator<K>, ObjectBidirectionalIterator<K>, ObjectBigListIterator<K>, ObjectIterator<K>, java.util.Iterator<K>
Direct Known Subclasses:
ObjectBigListIterators.BigListIteratorListIterator, ObjectBigListIterators.EmptyBigListIterator, ObjectBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractObjectBigListIterator<K>
extends AbstractObjectBidirectionalIterator<K>
implements ObjectBigListIterator<K>

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

This implementation provides (deprecated) implementations of ListIterator.previousIndex() and ListIterator.nextIndex() that just invoke the corresponding BigListIterator methods.

See Also:
ListIterator, BigListIterator

Method Summary
 void add(K k)
          This method just throws an UnsupportedOperationException.
 long back(long n)
          This method just iterates the type-specific version of BidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(K k)
          This method just throws an UnsupportedOperationException.
 long skip(long n)
          This method just iterates the type-specific version of Iterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
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 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.BigListIterator
nextIndex, previousIndex
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

set

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

Specified by:
set in interface ObjectBigListIterator<K>

add

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

Specified by:
add in interface ObjectBigListIterator<K>

skip

public long skip(long n)
This method just iterates the type-specific version of Iterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.

Specified by:
skip in interface BigListIterator<K>
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.

back

public long back(long n)
This method just iterates the type-specific version of BidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.