io.sphere.sdk.search.DateTimeSearchModel Maven / Gradle / Ivy
package io.sphere.sdk.search;
import javax.annotation.Nullable;
import java.time.ZonedDateTime;
public class DateTimeSearchModel extends RangeTermModelImpl implements SearchSortingModel {
public DateTimeSearchModel(@Nullable final SearchModel parent, final String pathSegment) {
super(parent, pathSegment);
}
@Override
public RangedFilterSearchModel filtered() {
return new RangedFilterSearchModel<>(this, null, TypeSerializer.ofDateTime());
}
@Override
public RangedFacetSearchModel faceted() {
return new RangedFacetSearchModel<>(this, null, TypeSerializer.ofDateTime());
}
@Override
public SearchSort sorted(S sortDirection) {
return new SphereSearchSort<>(this, sortDirection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy