Class AbstractCompound
- java.lang.Object
-
- org.biojava.nbio.core.sequence.template.AbstractCompound
-
- All Implemented Interfaces:
Compound
- Direct Known Subclasses:
AminoAcidCompound
,CodonCompound
,NucleotideCompound
public abstract class AbstractCompound extends Object implements Compound
The details of a Compound- Author:
- Andy Yates
-
-
Constructor Summary
Constructors Constructor Description AbstractCompound()
AbstractCompound(String base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
equalsIgnoreCase(Compound compound)
String
getBase()
String
getDescription()
String
getLongName()
Float
getMolecularWeight()
String
getShortName()
String
getUpperedBase()
int
hashCode()
void
setDescription(String description)
void
setLongName(String longName)
void
setMolecularWeight(Float molecularWeight)
void
setShortName(String shortName)
String
toString()
-
-
-
Constructor Detail
-
AbstractCompound
public AbstractCompound()
-
AbstractCompound
public AbstractCompound(String base)
-
-
Method Detail
-
getUpperedBase
public String getUpperedBase()
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceCompound
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceCompound
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceCompound
-
setShortName
public void setShortName(String shortName)
- Specified by:
setShortName
in interfaceCompound
-
getLongName
public String getLongName()
- Specified by:
getLongName
in interfaceCompound
-
setLongName
public void setLongName(String longName)
- Specified by:
setLongName
in interfaceCompound
-
getMolecularWeight
public Float getMolecularWeight()
- Specified by:
getMolecularWeight
in interfaceCompound
-
setMolecularWeight
public void setMolecularWeight(Float molecularWeight)
- Specified by:
setMolecularWeight
in interfaceCompound
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCase
in interfaceCompound
-
-