java.lang.Object
org.biojava3.core.sequence.template.AbstractCompoundTranslator<F,T>
- All Implemented Interfaces:
CompoundTranslator<F,
T>
- Direct Known Subclasses:
DNAToRNATranslator
,RNAToAminoAcidTranslator
public abstract class AbstractCompoundTranslator<F extends Compound,T extends Compound>
extends Object
implements CompoundTranslator<F,T>
-
Constructor Summary
ConstructorDescriptionAbstractCompoundTranslator
(SequenceCreatorInterface<T> creator, CompoundSet<F> fromCompoundSet, CompoundSet<T> toCompoundSet) -
Method Summary
Modifier and TypeMethodDescriptioncreateSequence
(Sequence<F> originalSequence) createSequences
(Sequence<F> originalSequence) translateMany
(F fromCompound)
-
Constructor Details
-
AbstractCompoundTranslator
public AbstractCompoundTranslator(SequenceCreatorInterface<T> creator, CompoundSet<F> fromCompoundSet, CompoundSet<T> toCompoundSet)
-
-
Method Details
-
getCreator
-
getFromCompoundSet
-
getToCompoundSet
-
translateMany
- Specified by:
translateMany
in interfaceCompoundTranslator<F extends Compound,
T extends Compound>
-
translate
-
createSequences
- Specified by:
createSequences
in interfaceCompoundTranslator<F extends Compound,
T extends Compound>
-
createSequence
- Specified by:
createSequence
in interfaceCompoundTranslator<F extends Compound,
T extends Compound>
-