aQute.libg.tuple.ComparablePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
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);
}
public int compareTo(Pair o) {
return getFirst().compareTo(o.getFirst());
}
}