C - The compound this set will containpublic abstract class AbstractCompoundSet<C extends Compound> extends Object implements CompoundSet<C>
| Constructor and Description |
|---|
AbstractCompoundSet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompound(C compound) |
protected void |
addCompound(C compound,
C lowerCasedCompound,
C... equivalents) |
protected void |
addCompound(C compound,
C lowerCasedCompound,
Iterable<C> equivalents) |
protected void |
addEquivalent(C compound,
C equivalent) |
boolean |
compoundsEqual(C compoundOne,
C compoundTwo) |
boolean |
compoundsEquivalent(C compoundOne,
C compoundTwo) |
boolean |
equals(Object o) |
List<C> |
getAllCompounds() |
C |
getCompoundForString(String string)
Return null if not recognised.
|
Set<C> |
getEquivalentCompounds(C compound) |
int |
getMaxSingleCompoundStringLength()
Returns the maximum size of a compound String this set holds
|
String |
getStringForCompound(C compound) |
boolean |
hasCompound(C compound) |
int |
hashCode() |
boolean |
isComplementable() |
boolean |
isCompoundStringLengthEqual()
Returns true if all String representations of Compounds are of the
same length.
|
boolean |
isValidSequence(Sequence<C> sequence) |
protected void addCompound(C compound)
public String getStringForCompound(C compound)
getStringForCompound in interface CompoundSet<C extends Compound>public C getCompoundForString(String string)
CompoundSetCompoundSet.getStringForCompound(Compound).getCompoundForString in interface CompoundSet<C extends Compound>public int getMaxSingleCompoundStringLength()
CompoundSetgetMaxSingleCompoundStringLength in interface CompoundSet<C extends Compound>public boolean isCompoundStringLengthEqual()
CompoundSetisCompoundStringLengthEqual in interface CompoundSet<C extends Compound>public boolean hasCompound(C compound)
hasCompound in interface CompoundSet<C extends Compound>public boolean compoundsEquivalent(C compoundOne, C compoundTwo)
compoundsEquivalent in interface CompoundSet<C extends Compound>public Set<C> getEquivalentCompounds(C compound)
getEquivalentCompounds in interface CompoundSet<C extends Compound>public boolean isValidSequence(Sequence<C> sequence)
isValidSequence in interface CompoundSet<C extends Compound>public List<C> getAllCompounds()
getAllCompounds in interface CompoundSet<C extends Compound>public boolean isComplementable()
isComplementable in interface CompoundSet<C extends Compound>Copyright © 2000–2016 BioJava. All rights reserved.