001package org.gbif.api.model.collections.search; 002 003import java.util.List; 004import lombok.AllArgsConstructor; 005import lombok.Data; 006import lombok.NoArgsConstructor; 007import org.gbif.api.vocabulary.collections.CollectionsFacetParameter; 008 009@Data 010@NoArgsConstructor 011public class CollectionFacet<T extends CollectionsFacetParameter> { 012 013 private T field; 014 private long cardinality; 015 private List<Count> counts; 016 017 @Data 018 @NoArgsConstructor 019 @AllArgsConstructor 020 public static class Count { 021 private String name; 022 private Long count; 023 } 024}