예제 #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());
 }