Package org.biojava.bio.symbol
Class Edit
java.lang.Object
org.biojava.bio.symbol.Edit
- All Implemented Interfaces:
Serializable
Encapsulates an edit operation on a SymbolList.
See SymbolList for a full description.
- Author:
- Matthew Pocock, George Waldon
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEdit(int pos, int length, SymbolList replacement) Create a new Edit.Edit(int pos, int length, SymbolList replacement, Map<String, Object> props) Create a new Edit with some properties.Convenience construtor for making single residue changes -
Method Summary
-
Field Details
-
pos
-
length
-
replacement
-
props
-
-
Constructor Details
-
Edit
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
Create a new Edit with some properties.- 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 inclusiveprops- a map of String properties and associated objects adding metainformation to this edit; for example a property may describe the fate of features surrounding this edit.
-
Edit
Convenience 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
-