Class ObjHashSet.ObjHashSetIterator

java.lang.Object
org.apache.uima.internal.util.ObjHashSet.ObjHashSetIterator
All Implemented Interfaces:
Iterator<T>
Enclosing class:
ObjHashSet<T>

private class ObjHashSet.ObjHashSetIterator extends Object implements Iterator<T>

/ /** / * advance pos until it points to a non 0 or is 1 past end / * @param pos - / * @return updated pos / */ / public int moveToNextFilled(int pos) { /// if (pos < 0) { /// pos = 0; /// } / / final int max = getCapacity(); / while (true) { / if (pos >= max) { / return pos; / } / T v = keys

invalid reference
pos
;

/ if (v != null && v != removedMarker) { / return pos; / } / pos ++; / } / }

  • Field Details

    • curPosition

      protected int curPosition
      Keep this always pointing to a non-0 entry, or if not valid, outside the range
  • Constructor Details

    • ObjHashSetIterator

      private ObjHashSetIterator()
  • Method Details

    • hasNext

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

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

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