public abstract class WaitCommand<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Function<T,Boolean> |
conditionFunction |
protected Predicate<T> |
conditionPredicate |
protected Supplier<Boolean> |
conditionSupplier |
protected org.apache.commons.logging.Log |
logger |
protected String |
message |
protected boolean |
notFlag |
protected T |
target |
protected String |
UNSUPPORTED_MSG |
| Constructor and Description |
|---|
WaitCommand(T target) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval() |
void |
setConditionFunction(Function<T,Boolean> conditionFunction) |
void |
setConditionPredicate(Predicate<T> conditionPredicate) |
void |
setConditionSupplier(Supplier<Boolean> conditionSupplier) |
void |
setMessage(String message) |
void |
setNotFlag(boolean notFlag) |
protected final String UNSUPPORTED_MSG
protected final org.apache.commons.logging.Log logger
protected T target
protected boolean notFlag
protected String message
public WaitCommand(T target)
public void setNotFlag(boolean notFlag)
public void setMessage(String message)
public boolean eval()
Copyright © 2016. All rights reserved.