Пример #1
0
 /** {@inheritDoc} */
 @Override
 public int compareTo(Key other) {
   int c = type.compareTo(other.getType());
   if (c == 0) {
     c = label.compareTo(other.getLabel());
   }
   return c;
 }