Package org.gbif.api.model.common.search
Class Facet<T extends SearchParameter>
java.lang.Object
org.gbif.api.model.common.search.Facet<T>
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 ClassesModifier and TypeClassDescriptionstatic class
Nested class that represents the count of each category. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
List of the different categories/count for this facet.getField()
The facet field, it's used only for identify the facet in a possible list of facets.int
hashCode()
void
setCounts
(List<Facet.Count> counts) Sets the list of counts/categories for this faceted field.void
Sets the field of the facet.toString()
-
Constructor Details
-
Facet
public Facet()Null/Empty constructor. -
Facet
Minimal constructor. -
Facet
Full constructor.
-
-
Method Details
-
getCounts
List of the different categories/count for this facet. -
setCounts
Sets the list of counts/categories for this faceted field. -
getField
The facet field, it's used only for identify the facet in a possible list of facets. -
setField
Sets the field of the facet. -
equals
-
hashCode
-
toString
-