Interface VersionRange


@Experimental public interface VersionRange
A range of versions. VersionConstraint objects are created using the VersionParser service.
Since:
4.0.0
See Also:
  • 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
    • getUpperBoundary

      @Nullable VersionRange.Boundary getUpperBoundary()
      Returns the upper boundary of this range, or null if none.
    • getLowerBoundary

      @Nullable VersionRange.Boundary getLowerBoundary()
      Returns the lower boundary of this range, or null if none.
    • toString

      @Nonnull String toString()
      Returns the string representation of this version.
      Overrides:
      toString in class Object
      Returns:
      the string representation of this version