Class AminoAcid
- java.lang.Object
-
- io.github.WeronikaJargielo.protein_interaction_finder.AminoAcid
-
public final class AminoAcid extends java.lang.Object
Class representing single amino acid in protein. It contains its abbreviation, chain ID and position in that chain.
-
-
Constructor Summary
Constructors Constructor Description AminoAcid(AminoAcidAbbreviations abbreviation, java.lang.String chainId, int position)
Instantiates new Amino acid.AminoAcid(org.biojava.nbio.structure.Group aminoAcidGroup)
Instantiates new Amino acid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
AminoAcidAbbreviations
getAbbreviation()
Returns amino acid abbreviation.java.lang.String
getChainId()
Returns chain ID of amino acid.int
getPosition()
Returns amino acid position in protein chain.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AminoAcid
public AminoAcid(AminoAcidAbbreviations abbreviation, java.lang.String chainId, int position)
Instantiates new Amino acid.- Parameters:
abbreviation
- Abbreviation of amino acid name.chainId
- Protein chain ID.position
- Position in given chain.
-
AminoAcid
public AminoAcid(org.biojava.nbio.structure.Group aminoAcidGroup)
Instantiates new Amino acid.- Parameters:
aminoAcidGroup
- Group which can be obtained from BioJava's Atom.
-
-
Method Detail
-
getAbbreviation
public AminoAcidAbbreviations getAbbreviation()
Returns amino acid abbreviation.- Returns:
- Amino acid abbreviation.
-
getChainId
public java.lang.String getChainId()
Returns chain ID of amino acid.- Returns:
- Chain ID of amino acid.
-
getPosition
public int getPosition()
Returns amino acid position in protein chain.- Returns:
- Amino acid position in protein chain.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-