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

io.sphere.sdk.search.model.TermModelImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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