Class Facet<T extends SearchParameter>

java.lang.Object
org.gbif.api.model.common.search.Facet<T>

public class Facet<T extends SearchParameter> extends Object
Represents a clustering of search results into categories. Each facet shows the number of hits within the search that match that category.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Nested class that represents the count of each category.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Null/Empty constructor.
    Facet(T field)
    Minimal constructor.
    Facet(T field, List<Facet.Count> counts)
    Full constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    List of the different categories/count for this facet.
    The facet field, it's used only for identify the facet in a possible list of facets.
    int
     
    void
    Sets the list of counts/categories for this faceted field.
    void
    setField(T field)
    Sets the field of the facet.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait