Class VersionId
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.version.VersionId
- All Implemented Interfaces:
Comparable<VersionId>
A version-id specifies the version that is associated with a resource, such as a JAR file.
The version-id used in this specification must conform to the following syntax:
version-id ::= string ( separator string ) *
string ::= char ( char ) *
char ::= any ASCII character except a space, an ampersand, a separator, or a modifier.
separator ::= "." | "-" | "_"
modifier ::= "+" | "*"
See JSR-56 Specification, Appendix A.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic VersionIdfromString(String versionId) Construct a version-id by the givenversionId.toString()Provides a string representation of thisVersionId.
-
Method Details
-
fromString
Construct a version-id by the givenversionId.- Parameters:
versionId- a version-id- Returns:
- a version-id
-
asVersionString
-
toString
Provides a string representation of thisVersionId. -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<VersionId>
-