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

cool.scx.data.query.OR Maven / Gradle / Ivy

package cool.scx.data.query;

import cool.scx.data.Query;

import static cool.scx.data.query.LogicType.OR;

public final class OR extends QueryLike implements Logic {

    private final Object[] clauses;

    public OR(Object... clauses) {
        this.clauses = clauses;
    }

    @Override
    public LogicType type() {
        return OR;
    }

    @Override
    public Object[] clauses() {
        return clauses;
    }

    @Override
    public Query toQuery() {
        return new QueryImpl().where(this);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy