示例#1
0
 @Override
 public boolean equals(Object obj) {
   if (obj instanceof Language) {
     Language obj2 = (Language) obj;
     return getKey().equals(obj2.getKey());
   }
   return false;
 }
示例#2
0
 @Override
 public int compare(Language o1, Language o2) {
   return o1.getKey().compareTo(o2.getKey());
 }