com.robotium.solo.Condition Maven / Gradle / Ivy
package com.robotium.solo;
/**
* Represents a conditional statement.
* Implementations may be used with {@link Solo#waitForCondition(Condition, int)}.
*/
public interface Condition {
/**
* Should do the necessary work needed to check a condition and then return whether this condition is satisfied or not.
* @return {@code true} if condition is satisfied and {@code false} if it is not satisfied
*/
public boolean isSatisfied();
}