1 |
package dk.thoerup.traininfoservice.banedk; |
package dk.thoerup.traininfoservice.banedk; |
2 |
|
|
3 |
public class DepartureBean implements Comparable<DepartureBean> { |
public class DepartureEntry implements Comparable<DepartureEntry> { |
4 |
private String time; |
private String time; |
5 |
private int updated; |
private int updated; |
6 |
private String trainNumber; |
private String trainNumber; |
9 |
private String location; |
private String location; |
10 |
private String status; |
private String status; |
11 |
private String note; |
private String note; |
12 |
|
private String type; |
13 |
|
|
14 |
|
|
15 |
public String getTime() { |
public String getTime() { |
61 |
this.note = note; |
this.note = note; |
62 |
} |
} |
63 |
|
|
64 |
|
public String getType() { |
65 |
|
return type; |
66 |
|
} |
67 |
|
|
68 |
|
public void setType(String type) { |
69 |
|
this.type = type; |
70 |
|
} |
71 |
|
|
72 |
@Override |
@Override |
73 |
public int compareTo(DepartureBean otherBean) { |
public int compareTo(DepartureEntry otherBean) { |
74 |
String timeStr1 = time.replace(":","").trim(); |
String timeStr1 = time.replace(":","").trim(); |
75 |
String timeStr2 = otherBean.time.replace(":","").trim(); |
String timeStr2 = otherBean.time.replace(":","").trim(); |
76 |
|
|