public static class ByteBigListIterators.BigListIteratorListIterator extends AbstractByteBigListIterator
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte ok)
Inserts the specified element into the list (optional operation).
|
int |
back(int n)
Moves back for the given number of elements.
|
long |
back(long n)
This implemntation iterates the type-specific version of
AbstractByteBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
byte |
nextByte()
Returns the next element as a primitive type.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
byte |
previousByte()
This implementation delegates to
AbstractByteBidirectionalIterator.previous(). |
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
void |
remove()
This implementation always throws an
UnsupportedOperationException. |
void |
set(byte ok)
Replaces the last element returned by
ByteIterator.next() or
ByteBidirectionalIterator.previous() with the specified element (optional operation). |
int |
skip(int n)
Skips the given number of elements.
|
long |
skip(long n)
Skips the given number of elements.
|
add, setpreviousnextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreviousnextforEachRemainingpublic void set(byte ok)
AbstractByteBigListIteratorByteIterator.next() or
ByteBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface ByteBigListIteratorset in class AbstractByteBigListIteratorListIterator.set(Object)public void add(byte ok)
AbstractByteBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface ByteBigListIteratoradd in class AbstractByteBigListIteratorListIterator.add(Object)public int back(int n)
AbstractByteBidirectionalIterator
The effect of this call is exactly the same as that of calling
ByteBidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
AbstractByteBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface ByteBidirectionalIteratorback in interface ObjectBidirectionalIterator<Byte>back in class AbstractByteBidirectionalIteratorn - the number of elements to skip backwards.AbstractByteBidirectionalIterator.previous()public long back(long n)
AbstractByteBigListIterator
This implemntation iterates the type-specific version of
AbstractByteBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractByteBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractByteIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Byte>remove in class AbstractByteIteratorpublic int skip(int n)
AbstractByteIterator
The effect of this call is exactly the same as that of calling
ByteIterator.next() for n times (possibly stopping if
Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractByteIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface ByteIteratorskip in interface ObjectIterator<Byte>skip in class AbstractByteIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractByteBigListIteratorThe effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractByteIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Byte>skip in class AbstractByteBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public byte nextByte()
AbstractByteIteratorThis implementation delegates to the corresponding generic method.
nextByte in interface ByteIteratornextByte in class AbstractByteIteratorIterator.next()public byte previousByte()
AbstractByteBidirectionalIterator
This implementation delegates to AbstractByteBidirectionalIterator.previous().
previousByte in interface ByteBidirectionalIteratorpreviousByte in class AbstractByteBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()