org.apache.wicket.util.diff.myers
Class Snake

java.lang.Object
  extended by org.apache.wicket.util.diff.myers.PathNode
      extended by org.apache.wicket.util.diff.myers.Snake

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.

Version:
$Revision: 1.1 $ $Date: 2006/03/12 00:24:21 $
Author:
Juanco Anez

Field Summary
 
Fields inherited from class org.apache.wicket.util.diff.myers.PathNode
i, j, prev
 
Constructor Summary
Snake(int i, int j, PathNode prev)
          Constructs a snake node.
 
Method Summary
 boolean isSnake()
          Is this node a Snake node?
 
Methods inherited from class org.apache.wicket.util.diff.myers.PathNode
isBootstrap, previousSnake, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Snake

public Snake(int i,
             int j,
             PathNode prev)
Constructs a snake node.

Parameters:
i - the position in the original sequence
j - the position in the revised sequence
prev - the previous node in the path.
Method Detail

isSnake

public boolean isSnake()
Is this node a Snake node?

Specified by:
isSnake in class PathNode
Returns:
true always


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.