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

io.sphere.sdk.search.TermStats Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.search;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;

public class TermStats extends Base {
    private final String term;
    private final Long count;

    @JsonCreator
    private TermStats(final String term, final Long count) {
        this.term = term;
        this.count = count;
    }

    public String getTerm() {
        return term;
    }

    public Long getCount() {
        return count;
    }

    public static TermStats of(final String term, final long count) {
        return new TermStats(term, count);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy