srecord KeyValueDiff(A key, B value1, B value2) implements Comparable> { public int compareTo(KeyValueDiff d) { ret cmp(key, d.key); } }