public abstract class AbstractTraverseStrategy<T> extends java.lang.Object implements TraverseStrategy<T>
Modifier and Type | Field and Description |
---|---|
protected int |
howMany
After how many found elements should the traversing stop?
Note: the traversing stops only when this is positive.
|
protected Filter |
spec
Specification on how to filter the elements while traversing the tree.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTraverseStrategy()
Default constructor
|
protected |
AbstractTraverseStrategy(Filter<T> spec) |
protected |
AbstractTraverseStrategy(Filter<T> spec,
int howMany) |
Modifier and Type | Method and Description |
---|---|
int |
getHowMany() |
Filter<T> |
getSpec() |
void |
setHowMany(int howMany) |
void |
setSpec(Filter<T> spec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
traverse
protected Filter spec
IdentityFilter
is assumed.protected int howMany