All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentlenium.core.conditions.Conditions Maven / Gradle / Ivy

package org.fluentlenium.core.conditions;

import java.util.function.Predicate;
import org.fluentlenium.core.conditions.message.Message;
import org.fluentlenium.core.conditions.message.NotMessage;

/**
 * Common interface for conditions.
 *
 * @param  type of condition
 */
public interface Conditions {
    /**
     * Check that the given predicate is verified against this condition object.
     *
     * @param predicate predicate to check
     * @return true if the predicated is checked, false otherwise
     */
    @NotMessage("does not verify predicate {0}")
    @Message("verify predicate {0}")
    boolean verify(Predicate predicate);

    /**
     * Negates this condition object.
     *
     * @return a negated condition object
     */
    @Negation
    Conditions not();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy