|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.service.resolver.VersionRange
public class VersionRange
This class represents a version range.
Field Summary | |
---|---|
static VersionRange |
emptyRange
An empty version |
Constructor Summary | |
---|---|
VersionRange(java.lang.String versionRange)
Constructs a VersionRange from the given versionRange String. |
|
VersionRange(Version minVersion,
boolean includeMin,
Version maxVersion,
boolean includeMax)
Constructs a VersionRange with the specified minVersion and maxVersion. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
boolean |
getIncludeMaximum()
Indicates if the maximum version is included in the version range. |
boolean |
getIncludeMinimum()
Indicates if the minimum version is included in the version range. |
Version |
getMaximum()
Returns the maximum Version of this VersionRange |
Version |
getMinimum()
Returns the minimum Version of this VersionRange |
boolean |
isIncluded(Version version)
Returns whether the given version is included in this VersionRange. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final VersionRange emptyRange
Constructor Detail |
---|
public VersionRange(Version minVersion, boolean includeMin, Version maxVersion, boolean includeMax)
minVersion
- the minimum version of the rangemaxVersion
- the maximum version of the rangepublic VersionRange(java.lang.String versionRange)
versionRange
- a version range String that specifies a range of
versions.Method Detail |
---|
public Version getMinimum()
public boolean getIncludeMinimum()
public Version getMaximum()
public boolean getIncludeMaximum()
public boolean isIncluded(Version version)
version
- a version to be tested for inclusion in this VersionRange.
(may be null
)
true
if the version is include,
false
otherwisepublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |