|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.IntTuple<T>
cz.cuni.jagrlib.IntMap.CommonIterator
protected class IntMap.CommonIterator
Common iterator ancestor.
Field Summary | |
---|---|
protected int |
i
Last used position in keys array. |
protected int[] |
keys
Copy of the map keys. |
protected int |
nextKey
Next key to be used in next() . |
protected boolean |
nextValid
Is nextKey variable valid? |
protected T |
nextValue
Next value to be used in next() . |
Fields inherited from class cz.cuni.jagrlib.IntTuple |
---|
key, value |
Constructor Summary | |
---|---|
protected |
IntMap.CommonIterator()
Backs up map keys for this iterator. |
Method Summary | |
---|---|
protected boolean |
findNext()
Finds the next map key ( nextKey ) and returns true if successful. |
boolean |
hasNext()
Part of the Iterator interface. |
void |
remove()
Part of the Iterator interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] keys
protected int i
keys
array. Should be incremented in next()
.
protected int nextKey
next()
. findNext()
sets it.
protected T nextValue
next()
. findNext()
sets it.
protected boolean nextValid
nextKey
variable valid?
Constructor Detail |
---|
protected IntMap.CommonIterator()
Method Detail |
---|
protected boolean findNext()
nextKey
) and returns true
if successful.
public boolean hasNext()
Iterator
interface.
public void remove()
Iterator
interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |