Commit | Line | Data |
---|---|---|
1c118933 | 1 | public class Origin implements Comparable<Origin> { |
613054ac | 2 | private String continent; |
97491195 JB |
3 | private String country; |
4 | ||
b974e749 JB |
5 | Origin() { |
6 | } | |
7 | ||
8 | Origin(String country) { | |
97491195 | 9 | setCountry(country); |
b974e749 JB |
10 | //TODO: properly set the continent from the country. |
11 | setContinent("Europe"); | |
613054ac JB |
12 | } |
13 | ||
14 | public String getContinent() { | |
15 | return continent; | |
16 | } | |
17 | ||
18 | public void setContinent(String continent) { | |
19 | this.continent = continent; | |
97491195 JB |
20 | } |
21 | ||
22 | public String getCountry() { | |
23 | return country; | |
24 | } | |
25 | ||
26 | public void setCountry(String country) { | |
27 | this.country = country; | |
28 | } | |
1c118933 JB |
29 | |
30 | @Override | |
31 | public int compareTo(Origin origin) { | |
32 | return 0; | |
33 | } | |
97491195 | 34 | } |