01: /*
02: Copyright 2001 Nicholas Allen (nallen@freenet.co.uk)
03: This file is part of JavaCVS.
04: JavaCVS is free software; you can redistribute it and/or modify
05: it under the terms of the GNU General Public License as published by
06: the Free Software Foundation; either version 2 of the License, or
07: (at your option) any later version.
08: JavaCVS is distributed in the hope that it will be useful,
09: but WITHOUT ANY WARRANTY; without even the implied warranty of
10: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: GNU General Public License for more details.
12: You should have received a copy of the GNU General Public License
13: along with JavaCVS; if not, write to the Free Software
14: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15: */
16: package allensoft.diff;
17:
18: /** The base class for a difference between two files. */
19: public abstract class Difference {
20: private int m_nStartLineInFile1;
21: private int m_nStartLineInFile2;
22:
23: /**
24: * Creates a new Difference object.
25: *
26: * @param nStartLineInFile1 DOCUMENT ME!
27: * @param nStartLineInFile2 DOCUMENT ME!
28: */
29: public Difference(int nStartLineInFile1, int nStartLineInFile2) {
30: m_nStartLineInFile1 = nStartLineInFile1;
31: m_nStartLineInFile2 = nStartLineInFile2;
32: }
33:
34: /**
35: * DOCUMENT ME!
36: *
37: * @return DOCUMENT ME!
38: */
39: public int getStartLineInFile1() {
40: return m_nStartLineInFile1;
41: }
42:
43: /**
44: * DOCUMENT ME!
45: *
46: * @return DOCUMENT ME!
47: */
48: public int getStartLineInFile2() {
49: return m_nStartLineInFile2;
50: }
51: }
|