Interface VersionConstraint
Version constraint for dependency.
Constraint is either a range ("[1,2)") or recommended version ("1.0").
VersionConstraint
objects are created using the
VersionParser service.- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the specified version is contained within this constraint.Returns the recommended version of this constraint, ornull
if none.Returns the range of this constraint, ornull
if none.toString()
Returns the string representation of this version.
-
Method Details
-
getVersionRange
Returns the range of this constraint, ornull
if none.Note: only one, this method or
getRecommendedVersion()
method must return non-null
value. -
getRecommendedVersion
Returns the recommended version of this constraint, ornull
if none.Note: only one, this method or
getVersionRange()
method must return non-null
value. -
contains
-
toString
-