public interface SearchCondition
Modifier and Type | Method and Description |
---|---|
boolean |
conditionMet(java.lang.Object obj)
Checks whether the stop condition is reached.
|
boolean |
limitReached(int depth)
Checks whether the depth limit is reached.
|
boolean conditionMet(java.lang.Object obj)
obj
- - the object to be checked.true
if the condition is reached, false
otherwise.boolean limitReached(int depth)
depth
- - the desirable depth of the search.true
if the limit is reached, false
otherwise.