Class RankedSequence.Itr

java.lang.Object
org.eclipse.sisu.inject.RankedSequence.Itr
All Implemented Interfaces:
Iterator<T>
Enclosing class:
RankedSequence<T>

final class RankedSequence.Itr extends Object implements Iterator<T>
Custom Iterator that copes with modification by repositioning itself in the updated list.
  • Field Details

    • content

      private RankedSequence.Content content
    • nextObj

      private T nextObj
    • nextUID

      private long nextUID
    • index

      private int index
  • Constructor Details

    • Itr

      Itr()
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • hasNext

      public boolean hasNext(int rank)
      Returns:
      true if the next element is ranked at or above the given rank; otherwise false
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • rank

      public int rank()
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>