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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents range boundary. -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns a string representation of this version rangebooleanDetermines whether the specified version is contained within this range.Returns the lower boundary of this range, ornullif none.Returns the upper boundary of this range, ornullif none.
-
Method Details
-
contains
Determines whether the specified version is contained within this range.- Parameters:
version- the version to test, must not benull- Returns:
trueif this range contains the specified version,falseotherwise
-
getUpperBoundary
Returns the upper boundary of this range, ornullif none. -
getLowerBoundary
Returns the lower boundary of this range, ornullif none. -
asString
Returns a string representation of this version range- Returns:
- the string representation of this version range
-