public class Facet<T extends SearchParameter> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Facet.Count
Nested class that represents the count of each category.
|
Constructor and Description |
---|
Facet()
Null/Empty constructor.
|
Facet(T field)
Minimal constructor.
|
Facet(T field,
List<Facet.Count> counts)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Facet.Count> |
getCounts()
List of the different categories/count for this facet.
|
T |
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 |
setField(T field)
Sets the field of the facet.
|
String |
toString() |
public Facet()
public Facet(T field, List<Facet.Count> counts)
public List<Facet.Count> getCounts()
public void setCounts(List<Facet.Count> counts)
public T getField()
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.