Class CodonCompound
- java.lang.Object
-
- org.biojava.nbio.core.sequence.template.AbstractCompound
-
- org.biojava.nbio.core.sequence.compound.CodonCompound
-
- All Implemented Interfaces:
Compound
public class CodonCompound extends AbstractCompound
Define a codon- Author:
- Andy Yates
-
-
Constructor Summary
Constructors Constructor Description CodonCompound(NucleotideCompound one, NucleotideCompound two, NucleotideCompound three, boolean start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
equalsIgnoreCase(Compound compound)
String
getDescription()
String
getLongName()
Float
getMolecularWeight()
NucleotideCompound
getOne()
String
getShortName()
NucleotideCompound
getThree()
NucleotideCompound
getTwo()
int
hashCode()
boolean
isStart()
void
setDescription(String description)
void
setLongName(String longName)
void
setMolecularWeight(Float molecularWeight)
void
setShortName(String shortName)
-
Methods inherited from class org.biojava.nbio.core.sequence.template.AbstractCompound
getBase, getUpperedBase, toString
-
-
-
-
Constructor Detail
-
CodonCompound
public CodonCompound(NucleotideCompound one, NucleotideCompound two, NucleotideCompound three, boolean start)
-
-
Method Detail
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCase
in interfaceCompound
- Overrides:
equalsIgnoreCase
in classAbstractCompound
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractCompound
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCompound
-
getOne
public NucleotideCompound getOne()
-
getTwo
public NucleotideCompound getTwo()
-
getThree
public NucleotideCompound getThree()
-
isStart
public boolean isStart()
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceCompound
- Overrides:
getDescription
in classAbstractCompound
-
getLongName
public String getLongName()
- Specified by:
getLongName
in interfaceCompound
- Overrides:
getLongName
in classAbstractCompound
-
getMolecularWeight
public Float getMolecularWeight()
- Specified by:
getMolecularWeight
in interfaceCompound
- Overrides:
getMolecularWeight
in classAbstractCompound
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceCompound
- Overrides:
getShortName
in classAbstractCompound
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceCompound
- Overrides:
setDescription
in classAbstractCompound
-
setLongName
public void setLongName(String longName)
- Specified by:
setLongName
in interfaceCompound
- Overrides:
setLongName
in classAbstractCompound
-
setMolecularWeight
public void setMolecularWeight(Float molecularWeight)
- Specified by:
setMolecularWeight
in interfaceCompound
- Overrides:
setMolecularWeight
in classAbstractCompound
-
setShortName
public void setShortName(String shortName)
- Specified by:
setShortName
in interfaceCompound
- Overrides:
setShortName
in classAbstractCompound
-
-