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