io.sphere.sdk.search.model.TermModelImpl Maven / Gradle / Ivy
package io.sphere.sdk.search.model;
import javax.annotation.Nullable;
import java.util.function.Function;
abstract class TermModelImpl extends SearchModelImpl implements TermModel {
private final Function typeSerializer;
TermModelImpl(@Nullable final SearchModel parent, @Nullable final String pathSegment, final Function typeSerializer) {
super(parent, pathSegment);
this.typeSerializer = typeSerializer;
}
@Override
public TermFilterSearchModel filtered() {
return new TermFilterSearchModel<>(this, typeSerializer);
}
@Override
public TermFacetSearchModel faceted() {
return new TermFacetSearchModel<>(this, typeSerializer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy