|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.nls.vtt.Lib.Difference
public class Difference
This class is modified from Difference.java from incava.org. It represents a difference, as used in Diff.java. A difference consists of two pairs of starting and ending points, each pair representing either the "from" or the "to" collection passed to Diff class. If an ending point is -1, then the difference was either a deletion or an addition. For example, if GetDeletedEnd() returns -1, then the difference represents an addition; if GetAddEnd() returns -1, then the difference represents an deletion.
History:
Field Summary | |
---|---|
static int |
NONE
definition for none |
Constructor Summary | |
---|---|
Difference(int delStart,
int delEnd,
int addStart,
int addEnd)
public constructor of Difference by specifying deletion start and end, addition start and end. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this object to the other for equality. |
int |
GetAddedEnd()
Get the addition end |
int |
GetAddedStart()
Get the addition start |
int |
GetDeletedEnd()
Get the deletion end |
int |
GetDeletedStart()
Get the deletion start |
void |
SetAdded(int line)
Set the Added line. |
void |
SetDeleted(int line)
Set the deletion line. |
java.lang.String |
toString()
Returns a string representation of this Difference. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NONE
Constructor Detail |
---|
public Difference(int delStart, int delEnd, int addStart, int addEnd)
Method Detail |
---|
public int GetDeletedStart()
public int GetDeletedEnd()
public int GetAddedStart()
public int GetAddedEnd()
public void SetDeleted(int line)
line
- the deletion line numberpublic void SetAdded(int line)
line
- the deletion line numberpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Difference object to compare to
public java.lang.String toString()
toString
in class java.lang.Object
|
VTT Java 2010 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |