示例#1
0
 @Override
 public String toString() {
   return Objects.toStringHelper(this)
       .add("id", id)
       .add("code", countryCodeDescription.getCode())
       .add("name", countryCodeDescription.getDescription())
       .toString();
 }
示例#2
0
 @Override
 public int compareTo(Country o) {
   int codeDiff = countryCodeDescription.getCode().compareTo(o.countryCodeDescription.getCode());
   if (codeDiff != 0) {
     return codeDiff;
   }
   return countryCodeDescription
       .getDescription()
       .compareTo(o.countryCodeDescription.getDescription());
 }
示例#3
0
 public String getName() {
   return countryCodeDescription.getDescription();
 }