Modifier and Type | Method and Description |
---|---|
public Object | |
public NodeIterator | Returns: A clone of this iteration that has been reset.Get a cloned Iterator that is reset to the start of the iteration. |
public Node | |
public int | getCurrentPos()
Get the current position, which is one less than the next nextNode() call will retrieve. |
public int | Returns: the index of the last node in this list.Get the index of the last node in this list. |
public boolean | Returns: true if the iteration of this list has not yet begun.Tells if this NodeSetDTM is "fresh", in other words, if the first nextNode() that is called will return the first node in the set. |
public void | |
public void | runTo(int
The index to run to, or -1 if the iterator should be run
to the end. index)If an index is requested, NodeSetDTM will call this method to run the iterator to the index. |
public void | |
public void | setLast(int
the index of the last node in this list. last)Set the index of the last node in this list. |
public void | setShouldCacheNodes(boolean
true if the nodes should be cached. b)If setShouldCacheNodes(true) is called, then nodes will be cached. |
public int |
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Get a clone of this iterator. Be aware that this operation may be somewhat expensive.
|
cloneWithReset | back to summary |
---|---|
public NodeIterator cloneWithReset() throws CloneNotSupportedException Get a cloned Iterator that is reset to the start of the iteration.
|
getCurrentNode | back to summary |
---|---|
public Node getCurrentNode() Get the current node.
|
getCurrentPos | back to summary |
---|---|
public int getCurrentPos() Get the current position, which is one less than the next nextNode() call will retrieve. i.e. if you call getCurrentPos() and the return is 0, the next fetch will take place at index 1.
|
getLast | back to summary |
---|---|
public int getLast() Get the index of the last node in this list.
|
isFresh | back to summary |
---|---|
public boolean isFresh() Tells if this NodeSetDTM is "fresh", in other words, if the first nextNode() that is called will return the first node in the set.
|
reset | back to summary |
---|---|
public void reset() Reset the iterator. |
runTo | back to summary |
---|---|
public void runTo(int index) If an index is requested, NodeSetDTM will call this method to run the iterator to the index. By default this sets m_next to the index. If the index argument is -1, this signals that the iterator should be run to the end.
|
setCurrentPos | back to summary |
---|---|
public void setCurrentPos(int i) Set the current position in the node set.
|
setLast | back to summary |
---|---|
public void setLast(int last) Set the index of the last node in this list.
|
setShouldCacheNodes | back to summary |
---|---|
public void setShouldCacheNodes(boolean b) If setShouldCacheNodes(true) is called, then nodes will be cached. They are not cached by default.
|
size | back to summary |
---|---|
public int size() Get the length of the list.
|