Class ObjHashSet.ObjHashSetIterator
java.lang.Object
org.apache.uima.internal.util.ObjHashSet.ObjHashSetIterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
ObjHashSet<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 Summary
FieldsModifier and TypeFieldDescriptionprotected intKeep this always pointing to a non-0 entry, or if not valid, outside the range -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
curPosition
protected int curPositionKeep this always pointing to a non-0 entry, or if not valid, outside the range
-
-
Constructor Details
-
ObjHashSetIterator
private ObjHashSetIterator()
-
-
Method Details
-
hasNext
-
next
-
remove
-