io.sphere.sdk.search.model.TermFacetExpressionImpl Maven / Gradle / Ivy
package io.sphere.sdk.search.model;
import io.sphere.sdk.search.FacetExpression;
import io.sphere.sdk.search.TermFacetExpression;
import javax.annotation.Nullable;
import java.util.function.Function;
import static java.util.Collections.emptyList;
class TermFacetExpressionImpl extends TermExpression implements TermFacetExpression {
TermFacetExpressionImpl(final SearchModel searchModel, final Function typeSerializer, @Nullable final String alias) {
super(searchModel, typeSerializer, emptyList(), alias);
}
@Override
public boolean equals(Object o) {
return o != null && o instanceof FacetExpression && expression().equals(((FacetExpression) o).expression());
}
@Nullable
@Override
public String alias() {
return super.alias();
}
@Nullable
@Override
public String value() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy