Class NucleotideCompound
- java.lang.Object
-
- org.biojava.nbio.core.sequence.template.AbstractCompound
-
- org.biojava.nbio.core.sequence.compound.NucleotideCompound
-
- All Implemented Interfaces:
ComplementCompound
,Compound
public class NucleotideCompound extends AbstractCompound implements ComplementCompound
- Author:
- Scooter Willis, Andy Yates
-
-
Constructor Summary
Constructors Constructor Description NucleotideCompound(String base, CompoundSet<NucleotideCompound> compoundSet, String complementStr)
NucleotideCompound(String base, CompoundSet<NucleotideCompound> compoundSet, String complementStr, NucleotideCompound[] constituents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
equalsIgnoreCase(Compound compound)
ComplementCompound
getComplement()
Set<NucleotideCompound>
getConstituents()
String
getShortName()
int
hashCode()
boolean
isAmbiguous()
-
Methods inherited from class org.biojava.nbio.core.sequence.template.AbstractCompound
getBase, getDescription, getLongName, getMolecularWeight, getUpperedBase, setDescription, setLongName, setMolecularWeight, setShortName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.biojava.nbio.core.sequence.template.Compound
getDescription, getLongName, getMolecularWeight, setDescription, setLongName, setMolecularWeight, setShortName
-
-
-
-
Constructor Detail
-
NucleotideCompound
public NucleotideCompound(String base, CompoundSet<NucleotideCompound> compoundSet, String complementStr)
-
NucleotideCompound
public NucleotideCompound(String base, CompoundSet<NucleotideCompound> compoundSet, String complementStr, NucleotideCompound[] constituents)
-
-
Method Detail
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceCompound
- Overrides:
getShortName
in classAbstractCompound
-
getComplement
public ComplementCompound getComplement()
- Specified by:
getComplement
in interfaceComplementCompound
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractCompound
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCompound
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCase
in interfaceCompound
- Overrides:
equalsIgnoreCase
in classAbstractCompound
-
getConstituents
public Set<NucleotideCompound> getConstituents()
-
isAmbiguous
public boolean isAmbiguous()
-
-