Class BundleVersion
java.lang.Object
org.openhab.core.addon.marketplace.BundleVersion
The
BundleVersion
wraps a bundle version and provides a method to compare them- Author:
- Jan N. Klug - Initial contribution
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
RANGE_PATTERN
-
-
Constructor Details
-
BundleVersion
-
-
Method Details
-
inRange
Test if this version is within the provided range- Parameters:
range
- a Maven like version range- Returns:
true
if this version is inside range,false
otherwise- Throws:
IllegalArgumentException
- ifrange
does not represent a valid range
-
equals
-
hashCode
public int hashCode() -
compareTo
Compares two bundle versions- Parameters:
other
- the other bundle version- Returns:
- a positive integer if this version is newer than the other version, a negative number if this version is older than the other version and 0 if the versions are equal
-
toString
-