public interface Walker<T> extends Iterator<T>
Tree
or a View
.
A Walker is typically retrieved from a VirtualTree
or
a View
, and the objects will be traversed in a set order.
Only the objects included in the tree or view will be included in the
walk.
Walker
differs from Iterator
in that it
includes a method to view the level that the walker is working on.
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Returns the level of the current iteration.
|
forEachRemaining, hasNext, next, remove
int getLevel()
next()
method. The level is
zero-based, and is based on the VirtualTree
's absolute root
element, and the distance (in nodes) from the root to the current element.© 1998- 2018 Stibo DX