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 Details

    • OSGIVersionUtil

      public OSGIVersionUtil()
  • Method Details

    • compare

      public static int compare(Version that, Version other)
      Parameters:
      that - The Version object to be compared.
      other - The Version 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 specified other version.