|
Framework Professional Edition Package |
||||||||
| 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(org.osgi.framework.Version minVersion,
boolean includeMin,
org.osgi.framework.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. |
org.osgi.framework.Version |
getMaximum()
Returns the maximum Version of this VersionRange |
org.osgi.framework.Version |
getMinimum()
Returns the minimum Version of this VersionRange |
boolean |
isIncluded(org.osgi.framework.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(org.osgi.framework.Version minVersion,
boolean includeMin,
org.osgi.framework.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 org.osgi.framework.Version getMinimum()
public boolean getIncludeMinimum()
public org.osgi.framework.Version getMaximum()
public boolean getIncludeMaximum()
public boolean isIncluded(org.osgi.framework.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.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||