Class 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 Detail

      • OSGIVersionUtil

        public OSGIVersionUtil()
    • Method Detail

      • 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.