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

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

There is a newer version: 2.7.4
Show newest version
package cool.scx.data.query;

import cool.scx.data.Query;

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

public final class AND extends QueryLike implements Logic {

    private final Object[] clauses;

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy