Package org.apache.commons.text.diff
Class StringsComparator.Snake
- java.lang.Object
-
- org.apache.commons.text.diff.StringsComparator.Snake
-
- Enclosing class:
- StringsComparator
private static class StringsComparator.Snake extends java.lang.Object
This class is a simple placeholder to hold the end part of a path under construction in aStringsComparator
.
-
-
Constructor Summary
Constructors Constructor Description Snake(int start, int end, int diag)
Constructs a new instance of Snake with specified indices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDiag()
Gets the diagonal number of the snake.int
getEnd()
Gets the end index of the snake.int
getStart()
Gets the start index of the snake.
-
-
-
Method Detail
-
getDiag
public int getDiag()
Gets the diagonal number of the snake.- Returns:
- diagonal number of the snake
-
getEnd
public int getEnd()
Gets the end index of the snake.- Returns:
- end index of the snake
-
getStart
public int getStart()
Gets the start index of the snake.- Returns:
- start index of the snake
-
-