io.sphere.sdk.states.queries.StateQuery Maven / Gradle / Ivy
package io.sphere.sdk.states.queries;
import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.queries.PagedQueryResult;
import io.sphere.sdk.queries.MetaModelQueryDsl;
import io.sphere.sdk.states.State;
import io.sphere.sdk.states.expansion.StateExpansionModel;
public interface StateQuery extends MetaModelQueryDsl> {
static StateQuery of() {
return new StateQueryImpl();
}
default StateQuery byKey(final String key) {
return withPredicates(StateQueryModel.of().key().is(key));
}
static TypeReference> resultTypeReference() {
return new TypeReference>(){
@Override
public String toString() {
return "TypeReference>";
}
};
}
}