protected class ConcurrentReaderHashMap.HashIterator
extends Object
implements Iterator, Enumeration
| Modifiers | Name | Description |
|---|---|---|
protected Object |
currentKey |
|
protected Object |
currentValue |
|
protected ConcurrentReaderHashMap.Entry |
entry |
|
protected int |
index |
|
protected ConcurrentReaderHashMap.Entry |
lastReturned |
|
protected ConcurrentReaderHashMap.Entry[] |
tab |
| Constructor and description |
|---|
protected HashIterator()Constructs a new HashIterator over a snapshot of the table. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
hasMoreElements()Returns whether there are more elements (Enumeration interface). |
|
public boolean |
hasNext()Returns whether there are more elements to iterate over. |
|
public Object |
next()Returns the next element in the iteration. |
|
public Object |
nextElement()Returns the next element (Enumeration interface). |
|
public void |
remove()Removes the last returned element from the map. |
|
protected Object |
returnValueOfNext()Returns the value of the next element. |
Constructs a new HashIterator over a snapshot of the table.
Returns whether there are more elements (Enumeration interface).
Returns whether there are more elements to iterate over.
Returns the next element in the iteration.
Returns the next element (Enumeration interface).
Removes the last returned element from the map.
Returns the value of the next element. This method can be overridden by subclasses to return different values (e.g., just the key or just the value instead of the whole entry).
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.