io.sphere.sdk.states.queries.StateQueryModel Maven / Gradle / Ivy
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 extends QueryModel> 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