org.eclipse.aether.version

## Interface VersionRange

-     public interface VersionRange

  A range of versions.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `VersionRange.Bound` A bound of a version range.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `containsVersion(Version version)` Determines whether the specified version is contained within this range.
    `VersionRange.Bound` | `getLowerBound()` Gets a lower bound (if any) for this range.
    `VersionRange.Bound` | `getUpperBound()` Gets an upper bound (if any) for this range.

- - ### Method Detail

    - #### containsVersion

          boolean containsVersion(Version version)

      Determines whether the specified version is contained within this range.
      Parameters:
        `version` - The version to test, must not be `null`.
      Returns:
        `true` if this range contains the specified version, `false` otherwise.

    - #### getLowerBound

          VersionRange.Bound getLowerBound()

      Gets a lower bound (if any) for this range. If existent, this range does not contain any version smaller than its lower bound. Note that complex version ranges might exclude some versions even within their bounds.
      Returns:
        A lower bound for this range or `null` is there is none.

    - #### getUpperBound

          VersionRange.Bound getUpperBound()

      Gets an upper bound (if any) for this range. If existent, this range does not contain any version greater than its upper bound. Note that complex version ranges might exclude some versions even within their bounds.
      Returns:
        An upper bound for this range or `null` is there is none.

Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.