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 bndlib Show documentation
Show all versions of bndlib Show documentation
The bndlib project is a general library to be used with OSGi bundles. It contains
lots of cool functionality that calculates dependencies, etc.
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());
}
}