io.sphere.sdk.queries.QueryPredicateConnector Maven / Gradle / Ivy
package io.sphere.sdk.queries;
class QueryPredicateConnector extends QueryPredicateBase {
private final String connectorWord;
private final QueryPredicate leftPredicate;
private final QueryPredicate rightPredicate;
QueryPredicateConnector(String connectorWord, QueryPredicate leftPredicate, QueryPredicate rightPredicate) {
this.connectorWord = connectorWord;
this.leftPredicate = leftPredicate;
this.rightPredicate = rightPredicate;
}
@Override
public String toSphereQuery() {
return leftPredicate.toSphereQuery() + " " + connectorWord + " " + rightPredicate.toSphereQuery();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy