Package net.infonode.util.collection.map
Class ConstVectorMap.ConstIterator
- java.lang.Object
-
- net.infonode.util.collection.map.ConstVectorMap.ConstIterator
-
- All Implemented Interfaces:
ConstMapIterator
- Enclosing class:
- ConstVectorMap
private class ConstVectorMap.ConstIterator extends java.lang.Object implements ConstMapIterator
-
-
Field Summary
Fields Modifier and Type Field Description private intindexprivate ConstMapIteratoriterator
-
Constructor Summary
Constructors Constructor Description ConstIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadvance()booleanatEntry()Returns true if the iterator points to an entry in the map.java.lang.ObjectgetKey()Returns the key at the current map entry.java.lang.ObjectgetValue()Returns the value at the current map entry.voidnext()Advance the iterator to the next entry.
-
-
-
Field Detail
-
index
private int index
-
iterator
private ConstMapIterator iterator
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Description copied from interface:ConstMapIteratorReturns the key at the current map entry.- Specified by:
getKeyin interfaceConstMapIterator- Returns:
- the key at the current map entry
-
getValue
public java.lang.Object getValue()
Description copied from interface:ConstMapIteratorReturns the value at the current map entry.- Specified by:
getValuein interfaceConstMapIterator- Returns:
- the value at the current map entry
-
next
public void next()
Description copied from interface:ConstMapIteratorAdvance the iterator to the next entry.- Specified by:
nextin interfaceConstMapIterator
-
atEntry
public boolean atEntry()
Description copied from interface:ConstMapIteratorReturns true if the iterator points to an entry in the map.- Specified by:
atEntryin interfaceConstMapIterator- Returns:
- true if the iterator points to an entry in the map
-
advance
private void advance()
-
-