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

io.sphere.sdk.queries.QueryPredicate Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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