Package org.gbif.api.model.checklistbank
Class NameUsageMetrics
java.lang.Object
org.gbif.api.model.checklistbank.NameUsageMetrics
Basic metrics for a single name usage. These metrics have been embedded in the NameUsage class before
but are rarely being used. They are therefore split out into a separate class to be retrieved only when needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull IntegergetKey()Return the key that uniquely identifies this name usage.getNumByRank(Rank rank) Gets the count of usages by a rank.@javax.validation.constraints.Min(0L) intReturns the number of direct taxonomic elements under this usage.@javax.validation.constraints.Min(0L) intReturns the number of classes that are below this taxon.intThe number of all accepted taxonomic elements under this usage.@javax.validation.constraints.Min(0L) intReturns the number of families that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of genus that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of orders that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of phyla that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of species that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of distinct subgenera that are below this taxon.@javax.validation.constraints.Min(0L) intReturns the number of related synonyms this usage possses.inthashCode()voidvoidsetNumChildren(int numChildren) voidsetNumClass(int numClass) voidsetNumDescendants(int numDescendants) voidsetNumFamily(int numFamily) voidsetNumGenus(int numGenus) voidsetNumOrder(int numOrder) voidsetNumPhylum(int numPhylum) voidsetNumSpecies(int numSpecies) voidsetNumSubgenus(int numSubgenus) voidsetNumSynonyms(int numSynonyms) toString()
-
Constructor Details
-
NameUsageMetrics
public NameUsageMetrics()
-
-
Method Details
-
getKey
Return the key that uniquely identifies this name usage.- Returns:
- the key
-
setKey
- Parameters:
key- the key to set
-
getNumChildren
Returns the number of direct taxonomic elements under this usage. "Direct" means that children should have this usageKey as their parentKey.- Returns:
- the numChildren
-
setNumChildren
- Parameters:
numChildren- the numChildren to set
-
getNumClass
Returns the number of classes that are below this taxon. Typically, this would mean this usage is of something above the "class" taxonomic level.- Returns:
- the numClass
-
setNumClass
- Parameters:
numClass- the numClass to set
-
getNumDescendants
The number of all accepted taxonomic elements under this usage.- Returns:
- the number of descendants
-
setNumDescendants
- Parameters:
numDescendants- the n umber of descendants to set
-
getNumFamily
Returns the number of families that are below this taxon. Typically, this would mean this usage is of something above the "family" taxonomic level.- Returns:
- the numFamily
-
setNumFamily
- Parameters:
numFamily- the numFamily to set
-
getNumGenus
Returns the number of genus that are below this taxon. Typically, this would mean this usage is of something above the "genus" taxonomic level.- Returns:
- the numGenus
-
setNumGenus
- Parameters:
numGenus- the numGenus to set
-
getNumOrder
Returns the number of orders that are below this taxon. Typically, this would mean this usage is of something above the "order" taxonomic level.- Returns:
- the numOrder
-
setNumOrder
- Parameters:
numOrder- the numOrder to set
-
getNumPhylum
Returns the number of phyla that are below this taxon. Typically, this would mean this usage is of something above the "phylum" taxonomic level.- Returns:
- the numPhylum
-
setNumPhylum
- Parameters:
numPhylum- the numPhylum to set
-
getNumSpecies
Returns the number of species that are below this taxon. Typically, this would mean this usage is of something above the "species" taxonomic level.- Returns:
- the numSpecies.
-
setNumSpecies
- Parameters:
numSpecies- the numSpecies to set
-
getNumSubgenus
Returns the number of distinct subgenera that are below this taxon. Typically, this would mean this usage is of something above the "subgenus" taxonomic level.- Returns:
- the numSubgenus
-
setNumSubgenus
- Parameters:
numSubgenus- the number of distinct subgenera
-
getNumSynonyms
Returns the number of related synonyms this usage possses.- Returns:
- the numSynonyms.
-
setNumSynonyms
- Parameters:
numSynonyms- the numSynonyms to set
-
getNumByRank
Gets the count of usages by a rank. Only Linnean ranks are supported.- Parameters:
rank- the linnean rank to retrieve counts for- Returns:
- the count or null if rank doesn't exist
-
equals
-
hashCode
-
toString
-