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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents range boundary.
- 
Method SummaryModifier 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- 
containsDetermines whether the specified version is contained within this range.- Parameters:
- version- the version to test, must not be- null
- Returns:
- trueif this range contains the specified version,- falseotherwise
 
- 
getUpperBoundaryReturns the upper boundary of this range, ornullif none.
- 
getLowerBoundaryReturns the lower boundary of this range, ornullif none.
- 
asStringReturns a string representation of this version range- Returns:
- the string representation of this version range
 
 
-