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

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

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

import javax.annotation.Nullable;
import java.time.LocalDate;

public class DateSearchModel extends RangeTermModelImpl implements SearchSortingModel {

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy