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

io.sphere.sdk.customobjects.queries.CustomObjectByKeyGet Maven / Gradle / Ivy

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

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.customobjects.expansion.CustomObjectExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;

import java.util.List;
import java.util.function.Function;

/**
 * {@link io.sphere.sdk.client.SphereRequest} to fetch one {@link io.sphere.sdk.customobjects.CustomObject} by container and key.
 * @param  The type of the value of the custom object.
 */
public interface CustomObjectByKeyGet extends MetaModelGetDsl, CustomObject, CustomObjectByKeyGet, CustomObjectExpansionModel>> {
    static  CustomObjectByKeyGet of(final String container, final String key, final TypeReference> typeReference) {
        return new CustomObjectByKeyGetImpl<>(typeReference, container, key);
    }

    static CustomObjectByKeyGet of(final String container, final String key) {
        final TypeReference> typeReference = new TypeReference>() {
            @Override
            public String toString() {
                return "TypeReference>";
            }
        };
        return of(container, key, typeReference);
    }

    @Override
    CustomObjectByKeyGet plusExpansionPaths(final Function>, ExpansionPath>> m);

    @Override
    CustomObjectByKeyGet withExpansionPaths(final Function>, ExpansionPath>> m);

    @Override
    CustomObjectByKeyGet plusExpansionPaths(final ExpansionPath> expansionPath);

    @Override
    CustomObjectByKeyGet withExpansionPaths(final ExpansionPath> expansionPath);

    @Override
    CustomObjectByKeyGet withExpansionPaths(final List>> expansionPaths);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy