|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.vcs.GenericDiffCounter
public class GenericDiffCounter
Diff counter, which wraps around JRCS diff engine.
Note that if this class is used to diff two text files, then empty lines and comments are considered in diff result. This may or may not be desired. Also note that if you try to diff two binary files, you either get an exception or an incorrect result.
Constructor Summary | |
---|---|
GenericDiffCounter(java.lang.Object[] original,
java.lang.Object[] revised)
Constructs this instance to diff two revisions. |
Method Summary | |
---|---|
int |
getLinesAdded()
Gets the lines added. |
int |
getLinesDeleted()
Gets the lines deleted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericDiffCounter(java.lang.Object[] original, java.lang.Object[] revised) throws java.lang.Exception
original
- The original version.revised
- The revision.
java.lang.Exception
- If there is error in diff engine.Method Detail |
---|
public int getLinesAdded()
public int getLinesDeleted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |