Interface VersionRange


@Experimental public interface VersionRange
A range of versions.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string representation of this version range
    boolean
    contains(Version version)
    Determines whether the specified version is contained within this range.
  • Method Details

    • contains

      boolean contains(@Nonnull 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
    • asString

      @Nonnull String asString()
      Returns a string representation of this version range
      Returns:
      the string representation of this version range