Class EntrySequence
java.lang.Object
org.dishevelled.bio.protein.uniprot.EntrySequence
Entry sequence.
- Since:
- 2.5
- Author:
- Michael Heuer
-
Constructor Summary
ConstructorsConstructorDescriptionEntrySequence(int length, int mass, String checksum, String modified, int version, boolean precursor, String fragment, String sequence) Create a new entry sequence. -
Method Summary
Modifier and TypeMethodDescriptionReturn the accession for this entry sequence.Return the checksum for this entry sequence.Return the fragment for this entry sequence, may be null.intReturn the length for this entry sequence.intgetMass()Return the mass for this entry sequence.Return the last modified date for this entry sequence.Return the sequence for this entry sequence.intReturn the version for this entry sequence.booleanReturn true if this entry sequence is a precursor.(package private) EntrySequencewithAccession(String accession) Return this entry sequence with the specified accession.
-
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- lengthmass- masschecksum- checksum, must not be nullmodified- modified, must not be nullversion- versionprecursor- precursorfragment- fragment, if anysequence- sequence, must not be null
-
-
Method Details
-
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
Return the checksum for this entry sequence.- Returns:
- the checksum for this entry sequence
-
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
Return the fragment for this entry sequence, may be null.- Returns:
- the fragment for this entry sequence, may be null
-
getSequence
Return the sequence for this entry sequence.- Returns:
- the sequence for this entry sequence
-
withAccession
Return this entry sequence with the specified accession.- Parameters:
accession- accession, must not be null- Returns:
- this entry sequence with the specified accession
-