Class SequencesComparator.Snake
java.lang.Object
org.apache.commons.collections4.sequence.SequencesComparator.Snake
- Enclosing class:
SequencesComparator<T>
This class is a simple placeholder to hold the end part of a path
under construction in a
SequencesComparator
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
start
private final int startStart index. -
end
private final int endEnd index. -
diag
private final int diagDiagonal number.
-
-
Constructor Details
-
Snake
public Snake(int start, int end, int diag) Simple constructor. Creates a new instance of Snake with specified indices.- Parameters:
start
- start index of the snakeend
- end index of the snakediag
- diagonal number
-
-
Method Details
-
getStart
public int getStart()Get the start index of the snake.- Returns:
- start index of the snake
-
getEnd
public int getEnd()Get the end index of the snake.- Returns:
- end index of the snake
-
getDiag
public int getDiag()Get the diagonal number of the snake.- Returns:
- diagonal number of the snake
-