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

com.github.rutledgepaulv.qbuilders.properties.virtual.ExistentialProperty Maven / Gradle / Ivy

The newest version!
/*
 *
 *  *  com.github.rutledgepaulv.qbuilders.properties.virtual.ExistentialProperty
 *  *  *
 *  *  * 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.virtual;

import com.github.rutledgepaulv.qbuilders.builders.QBuilder;
import com.github.rutledgepaulv.qbuilders.conditions.Condition;

/**
 * For properties that may or may not exist.
 *
 * @param  The final type of the builder.
 */
public interface ExistentialProperty> extends Property {

    /**
     * Specifies that the selected field must exist (and be non-null).
     *
     * @return The logically complete condition
     */
    Condition exists();

    /**
     * Specifies that the selected field must not exist (or be equal to null).
     *
     * @return The logically complete condition
     */
    Condition doesNotExist();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy