-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinkedLocation.java
More file actions
44 lines (31 loc) · 958 Bytes
/
Copy pathLinkedLocation.java
File metadata and controls
44 lines (31 loc) · 958 Bytes
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
public class LinkedLocation {
private final Location LOCATION;
private LinkedLocation previous;
private LinkedLocation next;
public LinkedLocation(Location location) {
this.LOCATION = location;
this.previous = null;
this.next = null;
}
public LinkedLocation(Location location, LinkedLocation previous,
LinkedLocation next) {
this.LOCATION = location;
this.next = next;
this.previous = previous;
}
public Location getLocation() {
return this.LOCATION;
}
public LinkedLocation getPrevious() {
return this.previous;
}
public void setPrevious(LinkedLocation previous) {
this.previous = previous;
}
public LinkedLocation getNext() {
return this.next;
}
public void setNext(LinkedLocation next) {
this.next = next;
}
}