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 TypeMethodDescriptionbooleanDetermines whether the specified version is contained within this constraint.Returns the recommended version of this constraint, ornullif none.Returns the range of this constraint, ornullif none.toString()Returns the string representation of this version.
-
Method Details
-
getVersionRange
Returns the range of this constraint, ornullif none.Note: only one, this method or
getRecommendedVersion()method must return non-nullvalue. -
getRecommendedVersion
Returns the recommended version of this constraint, ornullif none.Note: only one, this method or
getVersionRange()method must return non-nullvalue. -
contains
-
toString
-