Class VersionRange
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.version.VersionRange
A version-range is either a version-id, a version-id followed by a star (*),
a version-id followed by a plus sign (+) , or two version-ranges combined using an ampersand (&).
The star means prefix match, the plus sign means this version or greater,
and the ampersand means the logical and-ing of the two version-ranges.
The syntax of version-strings is:
version-string ::= version-range ( " " element) *
version-range ::= simple-range ( "&" simple-range) *
simple-range ::= version-id | version-id modifier
modifier ::= "+" | "*"
See JSR-56 Specification, Appendix A.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this version-range contains the givenversionId.booleanCheck if this version-range contains the givenversionId.booleanstatic VersionRangefromString(String versionRange) Construct a version-range by the givenversionRange.toString()Provides a string representation of thisVersionRange.
-
Method Details
-
fromString
Construct a version-range by the givenversionRange.- Parameters:
versionRange- a version-range- Returns:
- a version-id
-
contains
Check if this version-range contains the givenversionId.- Parameters:
versionId- a version-id- Returns:
trueif this version-range containsversionId,falseotherwise.
-
contains
Check if this version-range contains the givenversionId.- Parameters:
versionId- a version-id- Returns:
trueif this version-range containsversionId,falseotherwise.
-
equals
-
toString
Provides a string representation of thisVersionRange.
-