public final class Edit extends Object implements Serializable
Encapsulates an edit operation on a SymbolList.
See SymbolList for a full description.
| Modifier and Type | Field and Description |
|---|---|
int |
length |
int |
pos |
SymbolList |
replacement |
| Constructor and Description |
|---|
Edit(int pos,
Alphabet alpha,
Symbol replacement)
Convenience construtor for making single residue changes
|
Edit(int pos,
int length,
SymbolList replacement)
Create a new Edit.
|
public final int pos
public final int length
public final SymbolList replacement
public Edit(int pos, int length, SymbolList replacement)
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 inclusivepublic Edit(int pos, Alphabet alpha, Symbol replacement) throws IllegalSymbolException
pos - the position of the changealpha - the Alphabet of the replacement Symbolreplacement - the replacement SymbolIllegalSymbolException - if the replacement Symbol is not contained in alphaCopyright © 2014 BioJava. All rights reserved.