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

io.sphere.sdk.customers.queries.LocationsSetQueryModel Maven / Gradle / Ivy

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

import io.sphere.sdk.queries.*;

import java.util.Optional;
import java.util.function.Function;

public class LocationsSetQueryModel extends QueryModelImpl {
    public LocationsSetQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    public LocationsSetQueryModel(final Optional> parent, final String pathSegment) {
        this(parent, Optional.of(pathSegment));
    }

    public CountryQueryModel country() {
        return new CountryQueryModel(Optional.of(this), Optional.of("country"));
    }

    public StringQueryModel state() {
        return new StringQuerySortingModel<>(Optional.of(this), "state");
    }

    public Predicate where(final Predicate embeddedPredicate) {
        return new EmbeddedPredicate<>(this, embeddedPredicate);
    }

    public Predicate where(final Function> embeddedPredicate) {
        return where(embeddedPredicate.apply(PartialLocationsSetQueryModel.get()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy