it.unimi.dsi.fastutil.ints
Class IntBigListIterators.BigListIteratorListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
          extended by it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
              extended by it.unimi.dsi.fastutil.ints.IntBigListIterators.BigListIteratorListIterator
All Implemented Interfaces:
BidirectionalIterator<Integer>, BigListIterator<Integer>, IntBidirectionalIterator, IntBigListIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Iterator<Integer>
Enclosing class:
IntBigListIterators

public static class IntBigListIterators.BigListIteratorListIterator
extends AbstractIntBigListIterator

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


Field Summary
protected  IntListIterator i
           
 
Constructor Summary
protected IntBigListIterators.BigListIteratorListIterator(IntListIterator i)
           
 
Method Summary
 void add(int ok)
          This method just throws an UnsupportedOperationException.
 int back(int n)
          This method just iterates the type-specific version of AbstractIntBidirectionalIterator.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 AbstractIntBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 long nextIndex()
          Returns the index of the element that would be returned by a subsequent call to next.
 int nextInt()
          Delegates to the corresponding generic method.
 long previousIndex()
          Returns the index of the element that would be returned by a subsequent call to previous.
 int previousInt()
          Delegates to the corresponding generic method.
 void remove()
          This method just throws an UnsupportedOperationException.
 void set(int ok)
          This method just throws an UnsupportedOperationException.
 int skip(int n)
          This method just iterates the type-specific version of AbstractIntIterator.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 AbstractIntIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
add, set
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
previous
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
previous
 
Methods inherited from interface java.util.Iterator
next
 

Field Detail

i

protected final IntListIterator i
Constructor Detail

IntBigListIterators.BigListIteratorListIterator

protected IntBigListIterators.BigListIteratorListIterator(IntListIterator i)
Method Detail

set

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

Specified by:
set in interface IntBigListIterator
Overrides:
set in class AbstractIntBigListIterator

add

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

Specified by:
add in interface IntBigListIterator
Overrides:
add in class AbstractIntBigListIterator

back

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

Specified by:
back in interface IntBidirectionalIterator
Specified by:
back in interface ObjectBidirectionalIterator<Integer>
Overrides:
back in class AbstractIntBidirectionalIterator
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: AbstractIntBigListIterator
This method just iterates the type-specific version of AbstractIntBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.

Overrides:
back in class AbstractIntBigListIterator

remove

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

Specified by:
remove in interface Iterator<Integer>
Overrides:
remove in class AbstractIntIterator

skip

public int skip(int n)
Description copied from class: AbstractIntIterator
This method just iterates the type-specific version of AbstractIntIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.

Specified by:
skip in interface IntIterator
Specified by:
skip in interface ObjectIterator<Integer>
Overrides:
skip in class AbstractIntIterator
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: AbstractIntBigListIterator
This method just iterates the type-specific version of AbstractIntIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.

Specified by:
skip in interface BigListIterator<Integer>
Overrides:
skip in class AbstractIntBigListIterator
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()

nextInt

public int nextInt()
Description copied from class: AbstractIntIterator
Delegates to the corresponding generic method.

Specified by:
nextInt in interface IntIterator
Overrides:
nextInt in class AbstractIntIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousInt

public int previousInt()
Description copied from class: AbstractIntBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousInt in interface IntBidirectionalIterator
Overrides:
previousInt in class AbstractIntBidirectionalIterator
Returns:
the previous element in the iteration.
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()


Copyright © 2011. All Rights Reserved.