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

io.sphere.sdk.categories.queries.CategoryByIdGet Maven / Gradle / Ivy

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

import io.sphere.sdk.categories.Category;
import io.sphere.sdk.categories.expansion.CategoryExpansionModel;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;

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

/**
 * Retrieves a category by a known ID.
 *
 * {@include.example io.sphere.sdk.categories.queries.CategoryByIdGetTest#execution()}
 */
public interface CategoryByIdGet extends MetaModelGetDsl> {
    static CategoryByIdGet of(final Identifiable category) {
        return of(category.getId());
    }

    static CategoryByIdGet of(final String id) {
        return new CategoryByIdGetImpl(id);
    }

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

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

    @Override
    List> expansionPaths();

    @Override
    CategoryByIdGet plusExpansionPaths(final ExpansionPath expansionPath);

    @Override
    CategoryByIdGet withExpansionPaths(final ExpansionPath expansionPath);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy