ReferenceLocation.java
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Decompiled with CFR 0_118.
*/
package com.day.cq.wcm.siteimporter.internal.resource;
import java.net.URL;
public class ReferenceLocation
implements Comparable<ReferenceLocation> {
protected int start;
protected int end;
protected URL link;
protected int type;
public ReferenceLocation(int start, int end, URL link, int type) {
this.start = start;
this.end = end;
this.link = link;
this.type = type;
}
public int getStart() {
return this.start;
}
public int getEnd() {
return this.end;
}
public URL getLink() {
return this.link;
}
public int getType() {
return this.type;
}
public void setStart(int start) {
this.start = start;
}
public void setEnd(int end) {
this.end = end;
}
public void setLink(URL link) {
this.link = link;
}
public void setType(int type) {
this.type = type;
}
@Override
public int compareTo(ReferenceLocation referenceLocation) {
if (referenceLocation == null) {
return -1;
}
return referenceLocation.getStart() - this.getStart();
}
}