blob: 36f0242c743c6bfeb84b73a800c4475513b5042b [file] [log] [blame]
package aQute.libg.tuple;
public class ComparablePair<A extends Comparable<A>, B> extends Pair<A,B> implements Comparable<Pair<A, ? >> {
private static final long serialVersionUID = 1L;
public ComparablePair(A first, B second) {
super(first, second);
}
public int compareTo(Pair<A, ? > o) {
return getFirst().compareTo(o.getFirst());
}
}