Package org.xwiki.extension.version
Interface VersionRange
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
VersionRangeCollection
A range of versions.
- Since:
- 4.0M1
- Version:
- $Id: 0475dad9364b7ed008132ac84bb7310eecf47698 $
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVersion
(Version version) Indicate if the provided version is part of this range.getValue()
boolean
isCompatible
(VersionRange otherRange) Indicate if the provided version range is compatible with the provided version range.
-
Method Details
-
containsVersion
Indicate if the provided version is part of this range.- Parameters:
version
- the version to search- Returns:
- true if the version is part of the range, false otherwise
-
getValue
String getValue()- Returns:
- the string representation of this version range
-
isCompatible
Indicate if the provided version range is compatible with the provided version range.- Parameters:
otherRange
- the version range to compare- Returns:
- true if the two version ranges are compatibles, false otherwise
-