public class EndGapsHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static EndGapsHelper |
NO_END_GAPS
A EndGaps instance that always returns false from
isEndGap(int, int) |
| Constructor and Description |
|---|
EndGapsHelper(CharSequence[] residues,
boolean freeEndGaps)
Construct some new end gaps.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEndGap(int sequenceIndex,
int residueIndex)
Is this residue an end gap? End gaps are gaps at either end of the sequence.
|
public static final EndGapsHelper NO_END_GAPS
isEndGap(int, int)public EndGapsHelper(CharSequence[] residues, boolean freeEndGaps)
residues - each CharSequence represents a single sequence. The CharSequences do not have to be all the same length.
This parameter is used only for the duration of this method, and is not recorded for future use.freeEndGaps - if this is false, then all calls to isEndGap(int, int) will return false. Useful in situations where we do not have free end gaps.public boolean isEndGap(int sequenceIndex,
int residueIndex)
sequenceIndex - the index of the sequence in the range [0,n-1]residueIndex - the index of the residue in the range [0,n-1]