protected final class THashMap.KeyView.EntryIterator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_expectedSize
the number of elements this iterator believes are in the
data structure it accesses.
|
protected TObjectHash |
_hash |
protected int |
_index
the index used for iteration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the iterator can be advanced past its current
location.
|
protected void |
moveToNextIndex()
Sets the internal index so that the `next' object
can be returned.
|
Object |
next()
Moves the iterator to the next Object and returns it.
|
protected int |
nextIndex()
Returns the index of the next value in the data structure
or a negative value if the iterator is exhausted.
|
Object |
objectAtIndex(int index)
Returns the object at the specified index.
|
void |
remove()
Removes the last entry returned by the iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, removeprotected final TObjectHash _hash
protected int _expectedSize
protected int _index
public Object objectAtIndex(int index)
index - the index of the value to return.Object valuepublic Object next()
next in interface IteratorObject valueConcurrentModificationException - if the structure
was changed using a method that isn't on this iterator.NoSuchElementException - if this is called on an
exhausted iterator.protected final int nextIndex()
int valueConcurrentModificationException - if the underlying
collection's size has been modified since the iterator was
created.public boolean hasNext()
boolean valuepublic void remove()
protected final void moveToNextIndex()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.