A generic interface for waiting until a condition is true or not null. The condition may take a single argument of type . @param the argument to pass to any function called
| 28 | * @param <F> the argument to pass to any function called |
| 29 | */ |
| 30 | public interface Wait<F> { |
| 31 | |
| 32 | /** |
| 33 | * Implementations should wait until the condition evaluates to a value that is neither null nor |
| 34 | * false. Because of this contract, the return type must not be Void. |
| 35 | * |
| 36 | * <p>If the condition does not become true within a certain time (as defined by the implementing |
| 37 | * class), this method will throw a non-specified {@link Throwable}. This is so that an |
| 38 | * implementor may throw whatever is idiomatic for a given test infrastructure (e.g. JUnit4 would |
| 39 | * throw {@link AssertionError}). |
| 40 | * |
| 41 | * @param <V> the return type of the method, which must not be Void |
| 42 | * @param isTrue the parameter to pass to the {@link ExpectedCondition} |
| 43 | * @return truthy value from the isTrue condition |
| 44 | */ |
| 45 | <V extends @Nullable Object> @NonNull V until(Function<? super F, ? extends V> isTrue); |
| 46 | } |
no outgoing calls
no test coverage detected