it.unimi.dsi.fastutil.objects
Class ObjectBigListIterators.BigListIteratorListIterator<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>
              extended by it.unimi.dsi.fastutil.objects.ObjectBigListIterators.BigListIteratorListIterator<K>
All Implemented Interfaces:
BidirectionalIterator<K>, BigListIterator<K>, ObjectBidirectionalIterator<K>, ObjectBigListIterator<K>, ObjectIterator<K>, java.util.Iterator<K>
Enclosing class:
ObjectBigListIterators

public static class ObjectBigListIterators.BigListIteratorListIterator<K>
extends AbstractObjectBigListIterator<K>

A class exposing a list iterator as a big-list iterator..


Method Summary
 void add(K ok)
          This method just throws an UnsupportedOperationException.
 int back(int n)
          This method just iterates the type-specific version of BidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 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.
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 K next()
           
 long nextIndex()
          Returns the index of the element that would be returned by a subsequent call to next.
 K previous()
          Returns the previous element from the collection.
 long previousIndex()
          Returns the index of the element that would be returned by a subsequent call to previous.
 void remove()
          This method just throws an UnsupportedOperationException.
 void set(K ok)
          This method just throws an UnsupportedOperationException.
 int skip(int n)
          This method just iterates the type-specific version of Iterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

set

public void set(K ok)
Description copied from class: AbstractObjectBigListIterator
This method just throws an UnsupportedOperationException.

Specified by:
set in interface ObjectBigListIterator<K>
Overrides:
set in class AbstractObjectBigListIterator<K>

add

public void add(K ok)
Description copied from class: AbstractObjectBigListIterator
This method just throws an UnsupportedOperationException.

Specified by:
add in interface ObjectBigListIterator<K>
Overrides:
add in class AbstractObjectBigListIterator<K>

back

public int back(int n)
Description copied from class: AbstractObjectBidirectionalIterator
This method just iterates the type-specific version of BidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.

Specified by:
back in interface ObjectBidirectionalIterator<K>
Overrides:
back in class AbstractObjectBidirectionalIterator<K>
Parameters:
n - the number of elements to skip back.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()

back

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

Overrides:
back in class AbstractObjectBigListIterator<K>

remove

public void remove()
Description copied from class: AbstractObjectIterator
This method just throws an UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator<K>
Overrides:
remove in class AbstractObjectIterator<K>

skip

public int skip(int n)
Description copied from class: AbstractObjectIterator
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 ObjectIterator<K>
Overrides:
skip in class AbstractObjectIterator<K>
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()

skip

public long skip(long n)
Description copied from class: AbstractObjectBigListIterator
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>
Overrides:
skip in class AbstractObjectBigListIterator<K>
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.

hasNext

public boolean hasNext()

hasPrevious

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

Returns:
whether there is a previous element.
See Also:
ListIterator.hasPrevious()

next

public K next()

previous

public K previous()
Description copied from interface: BidirectionalIterator
Returns the previous element from the collection.

Returns:
the previous element from the collection.
See Also:
ListIterator.previous()

nextIndex

public long nextIndex()
Description copied from interface: BigListIterator
Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)

Returns:
the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
See Also:
ListIterator.nextIndex()

previousIndex

public long previousIndex()
Description copied from interface: BigListIterator
Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)

Returns:
the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
See Also:
ListIterator.previousIndex()