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

io.sphere.sdk.states.queries.StateQueryModel Maven / Gradle / Ivy

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


import io.sphere.sdk.queries.DefaultModelQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;
import io.sphere.sdk.states.State;

import java.util.Optional;

public class StateQueryModel extends DefaultModelQueryModelImpl {

    private StateQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    static StateQueryModel get() {
        return new StateQueryModel(Optional.>empty(), Optional.empty());
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy