public interface VersionConstraint
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.