javax.ide.util
Class Version

Represents the version number of an extension or component. A version
number is an immutable ordered sequence of integer values.

Version numbers can be represented in two forms. When you construct a
new Version object using a String representation of the version number, this
String representation is stored and returned by the toString() method.
This form of the version number will retain any redundant leading zeros in
any of the integer values which make up the version number.

Conversely, in the canonical form, a version number does not retain
leading zeros. The canonical form of new Version( "1.02.03" ) would
be "1.2.3". You can retrieve the canonical form of a Version object
using the toCanonicalString() method.

Constructor Summary

Version(java.lang.String versionLabel)
Constructs a Version object from a String representation.

Method Summary

int

compareTo(Version other)
Compare this version object with another version object.

boolean

equals(java.lang.Object other)
Compare this version object with another version object for equality.

compareTo

Compare this version object with another version object.
Comparison of two version numbers applies to the canonical form of the
version number. For example, the result of evaluating the expression
new Version( "1.05.07" ).compareTo( new Version( "1.5.0006" ) ) is
a positive integer indicating that version 1.5.7 is greater than 1.5.6.

equals

public boolean equals(java.lang.Object other)

Compare this version object with another version object for equality.
Equality of two version numbers applies to the canonical form of the
version number. For example, the result of evaluating the expression
new Version( "1.05.06" ).equals( new Version( "1.5.0006" ) ) is
true.