Class VersionIdComparator
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.version.VersionIdComparator
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
versionString
-
-
Constructor Details
-
VersionIdComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<VersionId>
-