Class Facet.Count

java.lang.Object
org.gbif.api.model.common.search.Facet.Count
Enclosing class:
Facet<T extends SearchParameter>

public static class Facet.Count extends Object
Nested class that represents the count of each category.
  • Constructor Details

    • Count

      public Count()
      Null/empty constructor.
    • Count

      public Count(String name, Long count)
      Full constructor.
      Parameters:
      name - or label of the category
      count - number of elements of this facet category
  • Method Details

    • getCount

      public Long getCount()
      Number of occurrences of the category(name).
    • setCount

      public void setCount(Long count)
      Sets the count of occurrences for this category.
    • getName

      public String 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

      public void setName(String name)
      Sets the name value of the category/count.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object