|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.util.iterator.AbstractMapIterator<K,V>
org.millscript.commons.util.map.AbstractITreeMap.ITreeMapNodeIterator<K,V>
K - V - public static class AbstractITreeMap.ITreeMapNodeIterator<K,V>
| Constructor Summary | |
|---|---|
AbstractITreeMap.ITreeMapNodeIterator(ITreeMapNode<K,V> rootNode,
boolean share)
Constructs a new binary tree map iterator to iterate over the specified node tree. |
|
| Method Summary | |
|---|---|
protected void |
advance()
Advances this iterator to its next point. |
protected K |
getKey()
Returns the key for the current mapping in the iteration. |
protected Maplet<K,V> |
getMaplet()
Returns the current mapping in the iteration. |
protected V |
getValue()
Returns the value for the current mapping in the iteration. |
boolean |
hasNext()
Returns true if there are more values available in this
iteration and false otherwise. |
protected boolean |
outOfBounds()
Returns true if this iterator is outside its bounds(before
the first element or beyond the last) and false otherwise. |
| Methods inherited from class org.millscript.commons.util.iterator.AbstractMapIterator |
|---|
currentKey, currentMaplet, currentValue, nextKey, nextMaplet, nextValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractITreeMap.ITreeMapNodeIterator(ITreeMapNode<K,V> rootNode,
boolean share)
rootNode - the root node in the tree to iterate overshare - if true the specified node tree will be
shared otherwise the array will be copied.| Method Detail |
|---|
protected void advance()
AbstractMapIterator
advance in class AbstractMapIterator<K,V>AbstractMapIterator.advance()protected K getKey()
AbstractMapIterator
getKey in class AbstractMapIterator<K,V>AbstractMapIterator.getKey()protected Maplet<K,V> getMaplet()
AbstractMapIterator
getMaplet in class AbstractMapIterator<K,V>AbstractMapIterator.getMaplet()protected V getValue()
AbstractMapIterator
getValue in class AbstractMapIterator<K,V>AbstractMapIterator.getValue()public boolean hasNext()
MapIteratortrue if there are more values available in this
iteration and false otherwise.
true if there are more values in this iteration
and false otherwiseMapIterator.hasNext()protected boolean outOfBounds()
AbstractMapIteratortrue if this iterator is outside its bounds(before
the first element or beyond the last) and false otherwise.
outOfBounds in class AbstractMapIterator<K,V>true if this iterator is outside its bounds and
false otherwiseAbstractMapIterator.outOfBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||