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 |
Map<String,Object> |
props |
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.
|
Edit(int pos,
int length,
SymbolList replacement,
Map<String,Object> props)
Create a new Edit with some properties.
|
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, int length, SymbolList replacement, Map<String,Object> props)
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.public Edit(int pos, Alphabet alpha, Symbol replacement) throws IllegalSymbolException
pos
- the position of the changealpha
- the Alphabet
of the replacement Symbol
replacement
- the replacement Symbol
IllegalSymbolException
- if the replacement Symbol
is not contained in alpha
Copyright © 2020 BioJava. All rights reserved.