Class AnnotationsWebService.TaxonValueObject

java.lang.Object
ubic.gemma.rest.AnnotationsWebService.TaxonValueObject
Enclosing class:
AnnotationsWebService

public static final class AnnotationsWebService.TaxonValueObject extends Object
An organism an entry derives from.
Author:
tesarst
  • Constructor Details

    • TaxonValueObject

      public TaxonValueObject(int ncbiTaxonId, @Nullable String label)
      Creates a new TaxonValueObject instance.
      Parameters:
      ncbiTaxonId - NCBI taxonomy id. The reason this is not just a label: Rattus norvegicus (10116) and Rattus rattus (10117) both read as "rat", so a name alone cannot separate them.
      label - The source's own rendering, e.g. Homo sapiens (Human).
  • Method Details

    • getNcbiTaxonId

      public int getNcbiTaxonId()
      NCBI taxonomy id. The reason this is not just a label: Rattus norvegicus (10116) and Rattus rattus (10117) both read as "rat", so a name alone cannot separate them.
    • getLabel

      @Nullable public String getLabel()
      The source's own rendering, e.g. Homo sapiens (Human).
    • 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