@ThreadSafe public class CountCondition extends Object implements Condition
| Constructor and Description |
|---|
CountCondition(int maxCount,
Condition condition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(EmbeddedBrowser browser)
Note: Check has a side effect (it increments a counter).
|
boolean |
equals(Object object)
Since "count" is a consequence of invoking "check", it is not included in the equality /
hashCode computation.
|
int |
hashCode()
Since "count" is a consequence of invoking "check", it is not included in the equality /
hashCode computation.
|
String |
toString() |
public CountCondition(int maxCount,
Condition condition)
maxCount - number of times the condition can be satisfied.condition - the condition.public boolean check(EmbeddedBrowser browser)
public int hashCode()
Copyright © 2007-2013. All Rights Reserved.