io.sphere.sdk.products.queries.PriceCollectionQueryModel Maven / Gradle / Ivy
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();
}
}