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