public static class IdentityMap.Keys<K> extends IdentityMap.MapIterator<K,java.lang.Object> implements java.lang.Iterable<K>, java.util.Iterator<K>
currentIndex, hasNext, map, nextIndex| Constructor and Description |
|---|
Keys(IdentityMap<K,?> map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.util.Iterator<K> |
iterator() |
K |
next() |
java.util.ArrayList<K> |
toArray()
Returns a new array containing the remaining keys.
|
findNextIndex, remove, resetpublic Keys(IdentityMap<K,?> map)
public boolean hasNext()
hasNext in interface java.util.Iterator<K>public java.util.Iterator<K> iterator()
iterator in interface java.lang.Iterable<K>public java.util.ArrayList<K> toArray()