Interface CompoundSet<C extends Compound>
- All Known Implementing Classes:
AbstractCompoundSet
,AbstractNucleotideCompoundSet
,AmbiguityDNACompoundSet
,AmbiguityDNARNAHybridCompoundSet
,AmbiguityRNACompoundSet
,AminoAcidCompoundSet
,CaseFreeAminoAcidCompoundSet
,DNACompoundSet
,ModifiedAminoAcidCompoundSet
,RNACompoundSet
public interface CompoundSet<C extends Compound>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compoundsEquivalent
(C compoundOne, C compoundTwo) getCompoundForString
(String string) Return null if not recognised.getEquivalentCompounds
(C compound) int
Returns the maximum size of a compound String this set holdsgetStringForCompound
(C compound) boolean
hasCompound
(C compound) boolean
boolean
Returns true if all String representations of Compounds are of the same length.boolean
isValidSequence
(Sequence<C> sequence)
-
Method Details
-
getMaxSingleCompoundStringLength
int getMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holds -
isCompoundStringLengthEqual
boolean isCompoundStringLengthEqual()Returns true if all String representations of Compounds are of the same length. -
getCompoundForString
Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed bygetStringForCompound(Compound)
. -
getStringForCompound
-
compoundsEquivalent
-
isValidSequence
-
getEquivalentCompounds
-
hasCompound
-
getAllCompounds
-
isComplementable
boolean isComplementable()
-