aQute.libg.tuple.ComparablePair Maven / Gradle / Ivy
package aQute.libg.tuple;
public class ComparablePair, B> extends Pair implements Comparable> {
private static final long serialVersionUID = 1L;
public ComparablePair(A first, B second) {
super(first, second);
}
@Override
public int compareTo(Pair o) {
return getFirst().compareTo(o.getFirst());
}
}