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

io.sphere.sdk.products.queries.PriceCollectionQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.products.queries;

import io.sphere.sdk.queries.CollectionQueryModel;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.QueryModelImpl;
import io.sphere.sdk.queries.QueryPredicate;

import javax.annotation.Nullable;

public final class PriceCollectionQueryModel extends QueryModelImpl implements CollectionQueryModel {

    PriceCollectionQueryModel(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment);
    }

    public DiscountedPriceOptionalQueryModel discounted() {
        return new DiscountedPriceOptionalQueryModel<>(this, "discounted");
    }

    @Override
    public QueryPredicate isEmpty() {
        return isEmptyCollectionQueryPredicate();
    }

    @Override
    public QueryPredicate isNotEmpty() {
        return isNotEmptyCollectionQueryPredicate();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy