Package org.gbif.api.model.common.search
Class Facet.Count
java.lang.Object
org.gbif.api.model.common.search.Facet.Count
- Enclosing class:
- Facet<T extends SearchParameter>
Nested class that represents the count of each category.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCount()
Number of occurrences of the category(name).getName()
Name is the label/name/title used to distinguish this category in the list of counts.int
hashCode()
void
Sets the count of occurrences for this category.void
Sets the name value of the category/count.toString()
-
Constructor Details
-
Count
public Count()Null/empty constructor. -
Count
Full constructor.- Parameters:
name
- or label of the categorycount
- number of elements of this facet category
-
-
Method Details
-
getCount
Number of occurrences of the category(name). -
setCount
Sets the count of occurrences for this category. -
getName
Name is the label/name/title used to distinguish this category in the list of counts. Each name should be unique in the list.- Returns:
- the name or label of the category
-
setName
Sets the name value of the category/count. -
equals
-
hashCode
-
toString
-