|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectIterator<K>
it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator<K>
it.unimi.dsi.fastutil.objects.AbstractObjectBigListIterator<K>
it.unimi.dsi.fastutil.objects.ObjectBigListIterators.BigListIteratorListIterator<K>
public static class ObjectBigListIterators.BigListIteratorListIterator<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 |
---|
public void set(K ok)
AbstractObjectBigListIterator
UnsupportedOperationException
.
set
in interface ObjectBigListIterator<K>
set
in class AbstractObjectBigListIterator<K>
public void add(K ok)
AbstractObjectBigListIterator
UnsupportedOperationException
.
add
in interface ObjectBigListIterator<K>
add
in class AbstractObjectBigListIterator<K>
public int back(int n)
AbstractObjectBidirectionalIterator
BidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
back
in interface ObjectBidirectionalIterator<K>
back
in class AbstractObjectBidirectionalIterator<K>
n
- the number of elements to skip back.
Iterator.next()
public long back(long n)
AbstractObjectBigListIterator
BidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
back
in class AbstractObjectBigListIterator<K>
public void remove()
AbstractObjectIterator
UnsupportedOperationException
.
remove
in interface java.util.Iterator<K>
remove
in class AbstractObjectIterator<K>
public int skip(int n)
AbstractObjectIterator
Iterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
skip
in interface ObjectIterator<K>
skip
in class AbstractObjectIterator<K>
n
- the number of elements to skip.
Iterator.next()
public long skip(long n)
AbstractObjectBigListIterator
Iterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
skip
in interface BigListIterator<K>
skip
in class AbstractObjectBigListIterator<K>
n
- the number of elements to skip.
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public K next()
public K previous()
BidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
ListIterator.previousIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |