final class RankedSequence.Itr
extends java.lang.Object
implements java.util.Iterator<T>
Iterator that copes with modification by repositioning itself in the updated list.| Modifier and Type | Field and Description |
|---|---|
private RankedSequence.Content |
content |
private int |
index |
private T |
nextObj |
private long |
nextUID |
| Constructor and Description |
|---|
Itr() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasNext(int rank) |
T |
next() |
int |
rank() |
void |
remove() |
private RankedSequence.Content content
private T nextObj
private long nextUID
private int index
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public boolean hasNext(int rank)
true if the next element is ranked at or above the given rank; otherwise falsepublic int rank()
public void remove()
remove in interface java.util.Iterator<T>