]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/diff/DiffIssue.java
5517b3a662b31e7704cbee4bcb02f35b176f9077
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / diff / DiffIssue.java
1 package org.argeo.slc.diff;
2
3 /** The root class for issues which happened during a diff. */
4 public abstract class DiffIssue implements Comparable<DiffIssue> {
5 /** The position of this issue. */
6 protected final DiffPosition position;
7
8 /** Constructor */
9 public DiffIssue(DiffPosition position) {
10 super();
11 this.position = position;
12 }
13
14 public int compareTo(DiffIssue o) {
15 return position.compareTo(o.position);
16 }
17
18 /** The position of this issue within the test file */
19 public DiffPosition getPosition() {
20 return position;
21 }
22 }