Class VersionIdComparator
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.jnlp.version.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.
-
-
Field Summary
Fields Modifier and Type Field Description private VersionStringversionString
-
Constructor Summary
Constructors Constructor Description VersionIdComparator(VersionString versionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(VersionId o1, VersionId o2)
-
-
-
Field Detail
-
versionString
private final VersionString versionString
-
-
Constructor Detail
-
VersionIdComparator
public VersionIdComparator(VersionString versionString)
-
-