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

io.sphere.client.model.facets.RangeFacetResultRaw Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.model.facets;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.List;

/** Aggregated counts for a numeric range facet, returned as a part of {@link io.sphere.client.model.SearchResult}. */
public class RangeFacetResultRaw implements FacetResult {
    private final List items;

    @JsonCreator
    public RangeFacetResultRaw(@JsonProperty("ranges") List items) {
        this.items = items;
    }

    /** A list of individual ranges for this range facet and their respective counts. */
    public List getItems() {
        return items;
    }

    @Override
    public String toString() {
        return "RangeFacetResultRaw{" +
                "items=" + items +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy