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

org.chronos.chronodb.api.query.LongContainmentCondition Maven / Gradle / Ivy

The newest version!
package org.chronos.chronodb.api.query;

import org.chronos.chronodb.internal.impl.query.condition.containment.LongWithinSetCondition;
import org.chronos.chronodb.internal.impl.query.condition.containment.SetWithoutLongCondition;

import java.util.Set;

public interface LongContainmentCondition extends ContainmentCondition {

    public static LongContainmentCondition WITHIN = LongWithinSetCondition.INSTANCE;
    public static LongContainmentCondition WITHOUT = SetWithoutLongCondition.INSTANCE;


    /**
     * Negates this condition.
     *
     * @return The negated condition.
     */
    public LongContainmentCondition negate();

    /**
     * Applies this condition.
     *
     * @param elementToTest The element to check. May be null.
     * @param collectionToTestAgainst The collection to check against. null will be treated as empty collection.
     * @return true if this condition applies, otherwise false.
     */
    public boolean applies(long elementToTest, Set collectionToTestAgainst);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy