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>CustomIteratorthat 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 booleanhasNext()booleanhasNext(int rank)Tnext()intrank()voidremove()
-
-
-
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:
hasNextin interfacejava.util.Iterator<T>
-
hasNext
public boolean hasNext(int rank)
- Returns:
trueif the next element is ranked at or above the given rank; otherwisefalse
-
rank
public int rank()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
-