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

com.github.rutledgepaulv.qbuilders.properties.concrete.BooleanProperty Maven / Gradle / Ivy

/*
 *
 *  *  com.github.rutledgepaulv.qbuilders.properties.concrete.BooleanProperty
 *  *  *
 *  *  * Copyright (C) 2016 Paul Rutledge 
 *  *  *
 *  *  * This software may be modified and distributed under the terms
 *  *  * of the MIT license.  See the LICENSE file for details.
 *  *
 *
 */

package com.github.rutledgepaulv.qbuilders.properties.concrete;

import com.github.rutledgepaulv.qbuilders.builders.QBuilder;
import com.github.rutledgepaulv.qbuilders.conditions.Condition;
import com.github.rutledgepaulv.qbuilders.properties.virtual.ExistentialProperty;

/**
 * A property view for fields with {@link Boolean} values.
 *
 * @param  The type of the final builder.
 */
public interface BooleanProperty> extends ExistentialProperty {

    /**
     * Mandates that the boolean field must be true to match the query.
     * @return The logically complete condition.
     */
    Condition isTrue();

    /**
     * Mandates that the boolean field must be false to match the query.
     * @return The logically complete condition.
     */
    Condition isFalse();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy