public class AminoAcidCompoundSet extends Object implements CompoundSet<AminoAcidCompound>, Serializable
Constructor and Description |
---|
AminoAcidCompoundSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
compoundsEquivalent(AminoAcidCompound compoundOne,
AminoAcidCompound compoundTwo) |
List<AminoAcidCompound> |
getAllCompounds() |
static AminoAcidCompoundSet |
getAminoAcidCompoundSet() |
AminoAcidCompound |
getCompoundForString(String string)
Return null if not recognised.
|
Set<AminoAcidCompound> |
getEquivalentCompounds(AminoAcidCompound compound) |
int |
getMaxSingleCompoundStringLength()
Returns the maximum size of a compound String this set holds
|
String |
getStringForCompound(AminoAcidCompound compound) |
boolean |
hasCompound(AminoAcidCompound compound) |
boolean |
isComplementable() |
boolean |
isCompoundStringLengthEqual()
Returns true if all String representations of Compounds are of the
same length.
|
boolean |
isValidSequence(Sequence<AminoAcidCompound> sequence) |
public String getStringForCompound(AminoAcidCompound compound)
getStringForCompound
in interface CompoundSet<AminoAcidCompound>
public AminoAcidCompound getCompoundForString(String string)
CompoundSet
CompoundSet.getStringForCompound(Compound)
.getCompoundForString
in interface CompoundSet<AminoAcidCompound>
public int getMaxSingleCompoundStringLength()
CompoundSet
getMaxSingleCompoundStringLength
in interface CompoundSet<AminoAcidCompound>
public boolean isCompoundStringLengthEqual()
CompoundSet
isCompoundStringLengthEqual
in interface CompoundSet<AminoAcidCompound>
public static AminoAcidCompoundSet getAminoAcidCompoundSet()
public boolean compoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)
compoundsEquivalent
in interface CompoundSet<AminoAcidCompound>
public Set<AminoAcidCompound> getEquivalentCompounds(AminoAcidCompound compound)
getEquivalentCompounds
in interface CompoundSet<AminoAcidCompound>
public boolean hasCompound(AminoAcidCompound compound)
hasCompound
in interface CompoundSet<AminoAcidCompound>
public boolean isValidSequence(Sequence<AminoAcidCompound> sequence)
isValidSequence
in interface CompoundSet<AminoAcidCompound>
public List<AminoAcidCompound> getAllCompounds()
getAllCompounds
in interface CompoundSet<AminoAcidCompound>
public boolean isComplementable()
isComplementable
in interface CompoundSet<AminoAcidCompound>
Copyright © 2000–2016 BioJava. All rights reserved.