Package org.eclipse.sisu.inject
Class RankedSequence.Itr
- java.lang.Object
-
- org.eclipse.sisu.inject.RankedSequence.Itr
-
- All Implemented Interfaces:
java.util.Iterator<T>
- Enclosing class:
- RankedSequence<T>
final class RankedSequence.Itr extends java.lang.Object implements java.util.Iterator<T>
CustomIterator
that copes with modification by repositioning itself in the updated list.
-
-
Constructor Summary
Constructors Constructor Description Itr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
hasNext(int rank)
T
next()
int
rank()
void
remove()
-
-
-
Field Detail
-
content
private RankedSequence.Content content
-
nextObj
private T nextObj
-
nextUID
private long nextUID
-
index
private int index
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
hasNext
public boolean hasNext(int rank)
- Returns:
true
if the next element is ranked at or above the given rank; otherwisefalse
-
rank
public int rank()
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-