Created a version identifier from the specified string.
Created a version identifier from the specified string.
Here is the grammar for version strings.
version ::= major('.'minor('.'micro('.'qualifier)?)?)? major ::= digit+ minor ::= digit+ micro ::= digit+ qualifier ::= (alpha|digit|'_'|'-')+ digit ::= [0..9] alpha ::= [a..zA..Z]
There must be no whitespace in version.
String representation of the version identifier.
If version
is improperly formatted.
Creates a version identifier from the specified numerical components.
Creates a version identifier from the specified numerical components.
The qualifier is set to the empty string.
Major component of the version identifier.
Minor component of the version identifier.
Micro component of the version identifier.
If the numerical components are negative.
Creates a version identifier from the specified components.
Creates a version identifier from the specified components.
Major component of the version identifier.
Minor component of the version identifier.
Micro component of the version identifier.
Qualifier component of the version identifier.
If null
is specified, then the qualifier will be set to the empty string.
If the numerical components are negative or the qualifier string is invalid.
Compares this OSGiVersion
object to another object.
Compares this OSGiVersion
object to another object.
A version is considered to be less than another version if its major component is less than the other version's major component, or the major components are equal and its minor component is less than the other version's minor component, or the major and minor components are equal and its micro component is less than the other version's micro component, or the major, minor and micro components are equal and it's qualifier component is less than the other version's qualifier component (using String#compareTo).
A version is considered to be equal to another version if the major, minor and micro components are equal and the qualifier component is equal (using String#compareTo).
A negative integer, zero, or a positive integer if this object is
less than, equal to, or greater than the specified
OSGiVersion
object.
If the specified object is not a OSGiVersion
.
Compares this OSGiVersion
object to another object.
Compares this OSGiVersion
object to another object.
A version is considered to be equal to another version if the
major, minor and micro components are equal and the qualifier component
is equal (using String.equals
).
true
if object
is a Version
and is equal to this object;
false
otherwise.
Returns a hash code value for the object.
Returns a hash code value for the object.
An integer which is a hash code value for this object.
Returns the string representation of this version identifier.
Returns the string representation of this version identifier.
The format of the version string will be major.minor.micro
if qualifier is the empty string or
major.minor.micro.qualifier
otherwise.
The string representation of this version identifier.
(oSGiVersion: StringAdd).self
(oSGiVersion: StringFormat).self
(oSGiVersion: ArrowAssoc[OSGiVersion]).x
(Since version 2.10.0) Use leftOfArrow
instead
(oSGiVersion: Ensuring[OSGiVersion]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Version identifier for bundles and packages.
Version identifiers have four components.
Version(String)
for the format of the qualifier string.OSGiVersion
objects are immutable.(Since version 0.6.0.9002) Use internal.OSGiVersion instead