public static class AbstractStructureBean.ConsistentNodeIterator extends java.lang.Object implements java.util.Iterator<StructureBeanNode>
Constructor and Description |
---|
ConsistentNodeIterator(java.util.Iterator<? extends StructureBeanNode> rootNodes,
TableDataFilter filter,
boolean filterRootNodes)
Construct an iterator that iterates through the decendant nodes of
the specified rootNodes in a consistent manner, i.e., if a
certain child node isn't accepted by the filter neither will their
children be accepted.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iterator has more nodes.
|
StructureBeanNode |
next()
Returns the next node.
|
void |
remove()
Removes the node previously returned from the iterator.
|
public ConsistentNodeIterator(java.util.Iterator<? extends StructureBeanNode> rootNodes, TableDataFilter filter, boolean filterRootNodes)
public boolean hasNext()
hasNext
in interface java.util.Iterator<StructureBeanNode>
public StructureBeanNode next()
next
in interface java.util.Iterator<StructureBeanNode>
public void remove()
remove
in interface java.util.Iterator<StructureBeanNode>
Copyright © Technia AB. All Rights Reserved.