io.sphere.sdk.queries.QueryPredicate Maven / Gradle / Ivy
package io.sphere.sdk.queries;
public interface QueryPredicate {
QueryPredicate or(QueryPredicate other);
QueryPredicate and(QueryPredicate other);
QueryPredicate negate();
/**
* The predicate for the SPHERE.IO HTTP API, not url encoded.
* Example: masterData(current(name(en="MB PREMIUM TECH T"))) and id = "e7ba4c75-b1bb-483d-94d8-2c4a10f78472"
*
* @return predicate as String
*/
String toSphereQuery();
static QueryPredicate of(final String sphereQuery) {
return new SimpleQueryPredicate<>(sphereQuery);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy