public final class Snake extends PathNode
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 and Description |
---|
Snake(int i,
int j,
PathNode prev)
Constructs a snake node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSnake()
Is this node a
Snake node ? |
isBootstrap, previousSnake, toString
public Snake(int i, int j, PathNode prev)
the
- position in the original sequencethe
- position in the revised sequenceprev
- the previous node in the path.public boolean isSnake()
Snake node
?Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs