jdiff

Class DiffMyers.change

public static class DiffMyers.change extends Object

The result of comparison is an "edit script": a chain of change objects. Each change represents one place where some lines are deleted and some are inserted. LINE0 and LINE1 are the first affected lines in the two files (origin 0). DELETED is the number of lines deleted here from file 0. INSERTED is the number of lines inserted here in file 1. If DELETED is 0 then LINE0 is the number of the line before which the insertion was done; vice versa for INSERTED and LINE1.
Field Summary
intdeleted
# lines of file 0 changed here.
intinserted
# lines of file 1 changed here.
intline0
Line number of 1st deleted line.
intline1
Line number of 1st inserted line.
DiffMyers.changelink
Previous or next edit command.

Field Detail

deleted

public int deleted
# lines of file 0 changed here.

inserted

public int inserted
# lines of file 1 changed here.

line0

public final int line0
Line number of 1st deleted line.

line1

public final int line1
Line number of 1st inserted line.

link

public DiffMyers.change link
Previous or next edit command.