Class EntrySequence

java.lang.Object
org.dishevelled.bio.protein.uniprot.EntrySequence

public final class EntrySequence extends Object
Entry sequence.
Since:
2.5
Author:
Michael Heuer
  • Constructor Details

    • EntrySequence

      EntrySequence(int length, int mass, String checksum, String modified, int version, boolean precursor, @Nullable String fragment, String sequence)
      Create a new entry sequence.
      Parameters:
      length - length
      mass - mass
      checksum - checksum, must not be null
      modified - modified, must not be null
      version - version
      precursor - precursor
      fragment - fragment, if any
      sequence - sequence, must not be null
  • Method Details

    • getAccession

      public String getAccession()
      Return the accession for this entry sequence.
      Returns:
      the accession for this entry sequence
    • getLength

      public int getLength()
      Return the length for this entry sequence.
      Returns:
      the length for this entry sequence
    • getMass

      public int getMass()
      Return the mass for this entry sequence.
      Returns:
      the mass for this entry sequence
    • getChecksum

      public String getChecksum()
      Return the checksum for this entry sequence.
      Returns:
      the checksum for this entry sequence
    • getModified

      public String getModified()
      Return the last modified date for this entry sequence.
      Returns:
      the last modified date for this entry sequence
    • getVersion

      public int getVersion()
      Return the version for this entry sequence.
      Returns:
      the version for this entry sequence
    • isPrecursor

      public boolean isPrecursor()
      Return true if this entry sequence is a precursor.
      Returns:
      true if this entry sequence is a precursor
    • getFragment

      public String getFragment()
      Return the fragment for this entry sequence, may be null.
      Returns:
      the fragment for this entry sequence, may be null
    • getSequence

      public String getSequence()
      Return the sequence for this entry sequence.
      Returns:
      the sequence for this entry sequence
    • withAccession

      EntrySequence withAccession(String accession)
      Return this entry sequence with the specified accession.
      Parameters:
      accession - accession, must not be null
      Returns:
      this entry sequence with the specified accession