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

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

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

import javax.annotation.Nullable;

public class StringSearchModel extends TermModelImpl implements SearchSortingModel {

    public StringSearchModel(@Nullable final SearchModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    @Override
    public FilterSearchModel filtered() {
        return new FilterSearchModel<>(this, null, TypeSerializer.ofString());
    }

    @Override
    public FacetSearchModel faceted() {
        return new FacetSearchModel<>(this, null, TypeSerializer.ofString());
    }

    @Override
    public SearchSort sorted(S sortDirection) {
        return new SphereSearchSort<>(this, sortDirection);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy