Record Class UniprotEntry

java.lang.Object
java.lang.Record
org.cy3sbml.uniprot.UniprotEntry

public record UniprotEntry(String primaryAccession, String uniProtId, String fullName, List<String> ecNumbers, List<String> alternativeNames, String scientificName, String commonName, List<String> geneNames, List<String> functionComments, List<String> catalyticActivities, List<String> pathways) extends Record
A UniProt entry, parsed from the UniProtKB REST JSON (https://rest.uniprot.org/uniprotkb/<accession>.json).
  • Constructor Details

    • UniprotEntry

      public UniprotEntry(String primaryAccession, String uniProtId, String fullName, List<String> ecNumbers, List<String> alternativeNames, String scientificName, String commonName, List<String> geneNames, List<String> functionComments, List<String> catalyticActivities, List<String> pathways)
      Creates an instance of a UniprotEntry record class.
      Parameters:
      primaryAccession - the value for the primaryAccession record component
      uniProtId - the value for the uniProtId record component
      fullName - the value for the fullName record component
      ecNumbers - the value for the ecNumbers record component
      alternativeNames - the value for the alternativeNames record component
      scientificName - the value for the scientificName record component
      commonName - the value for the commonName record component
      geneNames - the value for the geneNames record component
      functionComments - the value for the functionComments record component
      catalyticActivities - the value for the catalyticActivities record component
      pathways - the value for the pathways record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • primaryAccession

      public String primaryAccession()
      Returns the value of the primaryAccession record component.
      Returns:
      the value of the primaryAccession record component
    • uniProtId

      public String uniProtId()
      Returns the value of the uniProtId record component.
      Returns:
      the value of the uniProtId record component
    • fullName

      public String fullName()
      Returns the value of the fullName record component.
      Returns:
      the value of the fullName record component
    • ecNumbers

      public List<String> ecNumbers()
      Returns the value of the ecNumbers record component.
      Returns:
      the value of the ecNumbers record component
    • alternativeNames

      public List<String> alternativeNames()
      Returns the value of the alternativeNames record component.
      Returns:
      the value of the alternativeNames record component
    • scientificName

      public String scientificName()
      Returns the value of the scientificName record component.
      Returns:
      the value of the scientificName record component
    • commonName

      public String commonName()
      Returns the value of the commonName record component.
      Returns:
      the value of the commonName record component
    • geneNames

      public List<String> geneNames()
      Returns the value of the geneNames record component.
      Returns:
      the value of the geneNames record component
    • functionComments

      public List<String> functionComments()
      Returns the value of the functionComments record component.
      Returns:
      the value of the functionComments record component
    • catalyticActivities

      public List<String> catalyticActivities()
      Returns the value of the catalyticActivities record component.
      Returns:
      the value of the catalyticActivities record component
    • pathways

      public List<String> pathways()
      Returns the value of the pathways record component.
      Returns:
      the value of the pathways record component