Make Person class and attributes implements Comparable.
[Persons_Comparator.git] / src / Origin.java
1 public class Origin implements Comparable<Origin> {
2 private String country;
3
4 Origin(String country) {
5 setCountry(country);
6 }
7
8 public String getCountry() {
9 return country;
10 }
11
12 public void setCountry(String country) {
13 this.country = country;
14 }
15
16 @Override
17 public int compareTo(Origin origin) {
18 return 0;
19 }
20 }