org.xwiki.extension.version
Interface VersionRange

All Superinterfaces:
Serializable
All Known Subinterfaces:
VersionRangeCollection

public interface VersionRange
extends Serializable

A range of versions.

Since:
4.0M1
Version:
$Id: 7355491fa8b5e44fc5c135605668653360d36c18 $

Method Summary
 boolean containsVersion(Version version)
          Indicate if the provided version is part of this range.
 String getValue()
           
 boolean isCompatible(VersionRange otherRange)
          Indicate if the provided version range is compatible with the provided version range.
 

Method Detail

containsVersion

boolean containsVersion(Version version)
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

boolean isCompatible(VersionRange otherRange)
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


Copyright © 2004-2013 XWiki. All Rights Reserved.