Class VersionIdComparator

  • All Implemented Interfaces:
    java.util.Comparator<VersionId>

    public class VersionIdComparator
    extends java.lang.Object
    implements java.util.Comparator<VersionId>
    Comparator to compare two version-ids in the context of a version-string.

    If two or more version-id match the given version-string, the JNLP Client should use the one matching the earlier version-range in the version-string.

    If two or more version-id match a given version-range, the JNLP Client should use the one with the highest version-id.

    See JSR-56 Specification, Appendix A.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(VersionId o1, VersionId o2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • VersionIdComparator

        public VersionIdComparator​(VersionString versionString)
    • Method Detail