it.unimi.dsi.fastutil.chars
Class AbstractCharBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.chars.AbstractCharIterator
      extended by it.unimi.dsi.fastutil.chars.AbstractCharBidirectionalIterator
          extended by it.unimi.dsi.fastutil.chars.AbstractCharBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Character>, BigListIterator<Character>, CharBidirectionalIterator, CharBigListIterator, CharIterator, ObjectBidirectionalIterator<Character>, ObjectIterator<Character>, Iterator<Character>
Direct Known Subclasses:
CharBigListIterators.BigListIteratorListIterator, CharBigListIterators.EmptyBigListIterator, CharBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractCharBigListIterator
extends AbstractCharBidirectionalIterator
implements CharBigListIterator

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

Constructor Summary
protected AbstractCharBigListIterator()
           
 
Method Summary
 void add(char k)
          This method just throws an UnsupportedOperationException.
 void add(Character ok)
          Delegates to the corresponding type-specific method.
 long back(long n)
          This method just iterates the type-specific version of AbstractCharBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(char k)
          This method just throws an UnsupportedOperationException.
 void set(Character ok)
          Delegates to the corresponding type-specific method.
 long skip(long n)
          This method just iterates the type-specific version of AbstractCharIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharBidirectionalIterator
back, previous, previousChar
 
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharIterator
next, nextChar, remove, skip
 
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.chars.CharBidirectionalIterator
back, previousChar
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
nextChar, skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
 

Constructor Detail

AbstractCharBigListIterator

protected AbstractCharBigListIterator()
Method Detail

set

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

Specified by:
set in interface CharBigListIterator

add

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

Specified by:
add in interface CharBigListIterator

set

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

Specified by:
set in interface CharBigListIterator

add

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

Specified by:
add in interface CharBigListIterator

skip

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

Specified by:
skip in interface BigListIterator<Character>
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 AbstractCharBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.



Copyright © 2011. All Rights Reserved.