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

org.seedstack.business.specification.dsl.OperatorPicker Maven / Gradle / Ivy

/*
 * Copyright © 2013-2024, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.business.specification.dsl;

/**
 * An element of the {@link SpecificationBuilder} DSL to compose the current specification with
 * another one.
 *
 * @param  the type of the object the specification applies to.
 * @param  the type of the selector.
 */
public interface OperatorPicker extends TerminalOperation {

    /**
     * Compose the current specification with a new one using a logical AND.
     *
     * @return the next operation of the builder DSL, allowing to further compose a new specification.
     */
    S and();

    /**
     * Compose the current specification with a new one using a logical OR.
     *
     * @return the next operation of the builder DSL, allowing to further compose a new specification.
     */
    S or();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy