All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.libg.tuple.ComparablePair Maven / Gradle / Ivy

Go to download

A command line utility and Ant plugin to wrap, build, or examine bundles.

There is a newer version: 2.4.0
Show newest version
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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy