Package org.apache.maven.api
Interface VersionRange
A range of versions.
VersionConstraint
objects are created using the
VersionParser service.- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents range boundary. -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns a string representation of this version rangeboolean
Determines whether the specified version is contained within this range.Returns the lower boundary of this range, ornull
if none.Returns the upper boundary of this range, ornull
if none.
-
Method Details
-
contains
Determines whether the specified version is contained within this range.- Parameters:
version
- the version to test, must not benull
- Returns:
true
if this range contains the specified version,false
otherwise
-
getUpperBoundary
Returns the upper boundary of this range, ornull
if none. -
getLowerBoundary
Returns the lower boundary of this range, ornull
if none. -
asString
Returns a string representation of this version range- Returns:
- the string representation of this version range
-