public final class Snake extends PathNode
Represents a snake in a diffpath.
DiffNodes and Snakes allow for compression
of diffpaths, as each snake is represented by a single Snake
node and each contiguous series of insertions and deletions is represented
by a single DiffNodes.
| Constructor | Description |
|---|---|
Snake(int i,
int j,
PathNode prev) |
Constructs a snake node.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isSnake() |
Is this node a
Snake node? |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisBootstrap, previousSnake, toStringpublic Snake(int i,
int j,
PathNode prev)
i - the position in the original sequencej - the position in the revised sequenceprev - the previous node in the path.public boolean isSnake()
Snake node?Copyright © 2014–2019. All rights reserved.