Interface VersionRange

All Superinterfaces:
Serializable
All Known Subinterfaces:
VersionRangeCollection

public interface VersionRange extends Serializable
A range of versions.
Since:
4.0M1
Version:
$Id: 0475dad9364b7ed008132ac84bb7310eecf47698 $
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicate if the provided version is part of this range.
     
    boolean
    Indicate if the provided version range is compatible with the provided version range.
  • Method Details

    • 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