public final class ManagementGroupVertexIterator extends Object implements Iterator<ManagementGroupVertex>
Iterator interface which allows to
traverse a management graph and visit every reachable group vertex exactly once. The order
in which the group vertices are visited corresponds to the order of their discovery in a depth first
search.
This class is not thread-safe.| Constructor and Description |
|---|
ManagementGroupVertexIterator(ManagementGraph managementGraph,
boolean forward,
int stage)
Creates a new management group vertex iterator.
|
public ManagementGroupVertexIterator(ManagementGraph managementGraph, boolean forward, int stage)
managementGraph - the management graph that should be traversedforward - true if the graph should be traversed in correct order, false to reverse it in
reverse orderstage - the number of the stage whose vertices should be traversed or -1 if all stages should be included in the
traversalpublic boolean hasNext()
hasNext in interface Iterator<ManagementGroupVertex>public ManagementGroupVertex next()
next in interface Iterator<ManagementGroupVertex>public void remove()
remove in interface Iterator<ManagementGroupVertex>Copyright © 2014 The Apache Software Foundation. All rights reserved.