Package org.jacop.jasat.utils.structures
Class IntHashMap.KeysIterator
- java.lang.Object
-
- org.jacop.jasat.utils.structures.IntHashMap.KeysIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Integer>
- Enclosing class:
- IntHashMap<E>
private final class IntHashMap.KeysIterator extends java.lang.Object implements java.util.Iterator<java.lang.Integer>class used to iterate on the keys of the map
-
-
Field Summary
Fields Modifier and Type Field Description private intbucketIndexprivate intcurrentprivate booleanhasNextprivate intindex
-
Constructor Summary
Constructors Modifier Constructor Description privateKeysIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidfindNext()find the next keybooleanhasNext()java.lang.Integernext()voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Integer>
-
next
public java.lang.Integer next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Integer>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Integer>
-
findNext
private void findNext()
find the next key
-
-