Package org.biojava.bio.symbol
Class Edit
- java.lang.Object
-
- org.biojava.bio.symbol.Edit
-
- All Implemented Interfaces:
java.io.Serializable
public final class Edit extends java.lang.Object implements java.io.SerializableEncapsulates an edit operation on a SymbolList. See
SymbolListfor a full description.- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intlengthintposSymbolListreplacement
-
Constructor Summary
Constructors Constructor Description Edit(int pos, int length, SymbolList replacement)Create a new Edit.Edit(int pos, Alphabet alpha, Symbol replacement)Convenience construtor for making single residue changes
-
-
-
Field Detail
-
pos
public final int pos
-
length
public final int length
-
replacement
public final SymbolList replacement
-
-
Constructor Detail
-
Edit
public Edit(int pos, int length, SymbolList replacement)Create a new Edit.- Parameters:
pos- the start of the editlength- the length of the editreplacement- a SymbolList representing the symbols that replace those from pos to pos + length-1 inclusive
-
Edit
public Edit(int pos, Alphabet alpha, Symbol replacement) throws IllegalSymbolExceptionConvenience construtor for making single residue changes- Parameters:
pos- the position of the changealpha- theAlphabetof the replacementSymbolreplacement- the replacementSymbol- Throws:
IllegalSymbolException- if the replacementSymbolis not contained inalpha
-
-