compareTo(Object obj) { return(compareTo((CollationKey)obj)); }
public int compareTo (CollationKey ck) { int max = Math.min (key.length, ck.key.length);  for (int i = 0; i < max; ++i) { if (key[i] != ck.key[i]) return key[i] - ck.key[i]; }  return key.length - ck.key.length; }
compareTo(Object obj){  return(compareTo((CollationKey)obj));}