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

io.sphere.sdk.search.FacetDsl Maven / Gradle / Ivy

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

import java.util.List;

public interface FacetDsl extends FacetSupport {

    /**
     * Returns a new object with the new facet expression list as facets (query parameter {@code facet}).
     * @param facetExpressions the new facet expression list
     * @return a new object with facets
     */
    C withFacets(final List> facetExpressions);

    /**
     * Returns a new object with the new facet expression as facets (query parameter {@code facet}).
     * @param facetExpression the new facet expression
     * @return a new object with facets
     */
    C withFacets(final FacetExpression facetExpression);

    /**
     * Returns a ResourceSearch with the new facet expression list appended to the existing facets (query parameter {@code facet}).
     * @param facetExpressions the new facet expression list
     * @return a ResourceSearch with the existing facets plus the new facet list.
     */
    C plusFacets(final List> facetExpressions);

    /**
     * Returns a new object with the new facet expression appended to the existing facets (query parameter {@code facet}).
     * @param facetExpression the new facet expression
     * @return a new object with the existing facets plus the new facet.
     */
    C plusFacets(final FacetExpression facetExpression);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy