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

com.speedment.runtime.field.predicate.ComposedPredicate Maven / Gradle / Ivy

package com.speedment.runtime.field.predicate;

import com.speedment.runtime.compute.expression.ComposedExpression;
import com.speedment.runtime.field.internal.predicate.ComposedPredicateImpl;

/**
 * SpeedmentPredicate that composes a {@code Function} and another
 * {@code SpeedmentPredicate}, testing the output of the function with the
 * predicate to get the result.
 *
 * @author Emil Forslund
 * @since  3.1.2
 */
public interface ComposedPredicate
extends SpeedmentPredicate,
        ComposedExpression {

    SpeedmentPredicate secondStep();

    @Override
    default SpeedmentPredicate negate() {
        return new ComposedPredicateImpl<>(firstStep(), secondStep().negate());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy