io.sphere.sdk.search.BooleanSearchModel Maven / Gradle / Ivy
package io.sphere.sdk.search;
import javax.annotation.Nullable;
public class BooleanSearchModel extends TermModelImpl implements SearchSortingModel {
public BooleanSearchModel(@Nullable final SearchModel parent, final String pathSegment) {
super(parent, pathSegment);
}
@Override
public FilterSearchModel filtered() {
return new FilterSearchModel<>(this, null, TypeSerializer.ofBoolean());
}
@Override
public FacetSearchModel faceted() {
return new FacetSearchModel<>(this, null, TypeSerializer.ofBoolean());
}
/**
* Sorts boolean values in alphabetical order.
* ASC: False, True
* DESC: True, False
*/
@Override
public SearchSort sorted(final S sortDirection) {
return new SphereSearchSort<>(this, sortDirection);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy