private static class SequencesComparator.Snake
extends java.lang.Object
SequencesComparator.| Modifier and Type | Field and Description |
|---|---|
private int |
diag
Diagonal number.
|
private int |
end
End index.
|
private int |
start
Start index.
|
| Constructor and Description |
|---|
Snake(int start,
int end,
int diag)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDiag()
Get the diagonal number of the snake.
|
int |
getEnd()
Get the end index of the snake.
|
int |
getStart()
Get the start index of the snake.
|
private final int start
private final int end
private final int diag
public Snake(int start,
int end,
int diag)
start - start index of the snakeend - end index of the snakediag - diagonal numberpublic int getStart()
public int getEnd()
public int getDiag()