|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionConstraint
A constraint on versions for a dependency. A constraint can either consist of one or more version ranges or a single version. In the first case, the constraint expresses a hard requirement on a version matching one of its ranges. In the second case, the constraint expresses a soft requirement on a specific version (i.e. a recommendation).
Method Summary | |
---|---|
boolean |
containsVersion(Version version)
Determines whether the specified version satisfies this constraint. |
Collection<VersionRange> |
getRanges()
Gets the version ranges of this constraint. |
Version |
getVersion()
Gets the version recommended by this constraint. |
Method Detail |
---|
Collection<VersionRange> getRanges()
null
.Version getVersion()
null
if none.boolean containsVersion(Version version)
version
- The version to test, must not be null
.
true
if the specified version satisfies this constraint, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |