Top Description Fields Constructors Methods
org.assertj.core.util.diff.myers

public final Class Snake

extends PathNode
Class Inheritance

Copy from https://code.google.com/p/java-diff-utils/.

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.

Author
Juanco Anez

Field Summary

Inherited from org.assertj.core.util.diff.myers.PathNode:
ijprev

Constructor Summary

AccessConstructor and Description
public
Snake(int
the position in the original sequence
i
,
int
the position in the revised sequence
j
,
PathNode
the previous node in the path.
prev
)

Constructs a snake node.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true always
isSnake
()

Implements abstract org.assertj.core.util.diff.myers.PathNode.isSnake.

Is this node a Snake node?
Inherited from org.assertj.core.util.diff.myers.PathNode:
isBootstrappreviousSnaketoString

Constructor Detail

Snakeback to summary
public Snake(int i, int j, PathNode prev)

Constructs a snake node.

Parameters
i:int

the position in the original sequence

j:int

the position in the revised sequence

prev:PathNode

the previous node in the path.

Method Detail

isSnakeback to summary
public boolean isSnake()

Implements abstract org.assertj.core.util.diff.myers.PathNode.isSnake.

Doc from org.assertj.core.util.diff.myers.PathNode.isSnake.

Is this node a Snake node?

Returns:boolean

true always

Annotations
@Override