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 booleanequals(Object obj)booleanequalsIgnoreCase(Compound compound)ComplementCompoundgetComplement()Set<NucleotideCompound>getConstituents()StringgetShortName()inthashCode()booleanisAmbiguous()-
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:
getShortNamein interfaceCompound- Overrides:
getShortNamein classAbstractCompound
-
getComplement
public ComplementCompound getComplement()
- Specified by:
getComplementin interfaceComplementCompound
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractCompound
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCompound
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCasein interfaceCompound- Overrides:
equalsIgnoreCasein classAbstractCompound
-
getConstituents
public Set<NucleotideCompound> getConstituents()
-
isAmbiguous
public boolean isAmbiguous()
-
-