public abstract class AbstractCharBigListIterator extends AbstractCharBidirectionalIterator implements CharBigListIterator
This implementation provides (deprecated) implementations of ListIterator.previousIndex()
and ListIterator.nextIndex()
that
just invoke the corresponding BigListIterator
methods.
ListIterator
,
BigListIterator
Modifier and Type | Method and Description |
---|---|
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. |
back, previous, previousChar
next, nextChar, remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back, previousChar
nextChar, skip
skip
hasPrevious, previous
nextIndex, previousIndex
public void set(Character ok)
set
in interface CharBigListIterator
public void add(Character ok)
add
in interface CharBigListIterator
public void set(char k)
UnsupportedOperationException
.set
in interface CharBigListIterator
public void add(char k)
UnsupportedOperationException
.add
in interface CharBigListIterator
public long skip(long n)
AbstractCharIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BigListIterator<Character>
n
- the number of elements to skip.public long back(long n)
AbstractCharBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.