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

io.sphere.sdk.states.queries.StateByKeyFetch 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.QueryToFetchAdapter;
import io.sphere.sdk.states.State;

/**
 * Fetches a State by key.
 *
 * {@include.example io.sphere.sdk.states.queries.StateByKeyFetchTest#execution()}
 */
public class StateByKeyFetch extends QueryToFetchAdapter {

    private StateByKeyFetch(final String key) {
        super(StateQuery.resultTypeReference(), StateQuery.of().byKey(key));
    }

    public static StateByKeyFetch of(final String key) {
        return new StateByKeyFetch(key);
    }
}







© 2015 - 2024 Weber Informatics LLC | Privacy Policy