Modifier and Type | Field and Description |
---|---|
int |
i
Position in the original sequence.
|
int |
j
Position in the revised sequence.
|
PathNode |
prev
The previous node in the path.
|
Constructor and Description |
---|
PathNode(int i,
int j,
PathNode prev)
Concatenates a new path node with an existing diffpath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBootstrap()
Is this a bootstrap node?
|
abstract boolean |
isSnake()
Is this node a
Snake node ? |
PathNode |
previousSnake()
|
String |
toString() |
public final int i
public final int j
public final PathNode prev
public PathNode(int i, int j, PathNode prev)
i
- The position in the original sequence for the new node.j
- The position in the revised sequence for the new node.prev
- The previous node in the path.public abstract boolean isSnake()
Snake node
?Snake node
public boolean isBootstrap()
In bootstrap nodes one of the two coordinates is less than zero.
public final PathNode previousSnake()
DiffNodes
until a
Snake
or bootstrap node is found, or the end
of the path is reached.Snake
or bootstrap node in the path, or
null
if none found.Copyright © 2014–2019 AssertJ. All rights reserved.