Class OSGIVersionUtil
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.util.OSGIVersionUtil
-
public class OSGIVersionUtil extends Object
Avoid using org.osgi.framework.Version.compareTo(Version) method to avoid binary incompatibility with OSGi frameworks before they were compiled with Java 5.
-
-
Constructor Summary
Constructors Constructor Description OSGIVersionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compare(Version that, Version other)
Same contract asVersion.compareTo(Version)
-
-
-
Method Detail
-
compare
public static int compare(Version that, Version other)
Same contract asVersion.compareTo(Version)
- Parameters:
that
- TheVersion
object to be compared.other
- TheVersion
object to be compared.- Returns:
- A negative integer, zero, or a positive integer if
that
version is less than, equal to, or greater than the specifiedother
version.
-
-