|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionRange
A representation of a Version Range. See section 3.2.6 of the OSGi Service Platform Core Specification.
Method Summary | |
---|---|
Version |
getExactVersion()
this method returns the exact version from the versionInfo obj. |
Version |
getMaximumVersion()
get the maximum version |
Version |
getMinimumVersion()
get the minimum version |
VersionRange |
intersect(VersionRange range)
Create a new version range that is the intersection of this and the argument. |
boolean |
isExactVersion()
check if the versioninfo is the exact version |
boolean |
isMaximumExclusive()
is the maximum version exclusive |
boolean |
isMaximumUnbounded()
is the maximum version unbounded |
boolean |
isMinimumExclusive()
is the minimum version exclusive |
boolean |
matches(Version version)
This method tests to see if the provided version is inside this range. |
Method Detail |
---|
Version getExactVersion()
Version getMaximumVersion()
Version getMinimumVersion()
boolean isMaximumExclusive()
boolean isMaximumUnbounded()
boolean isMinimumExclusive()
boolean isExactVersion()
boolean matches(Version version)
version
- the version to test.
VersionRange intersect(VersionRange range)
this
and the argument.
In other words, the largest version range that lies within both this
and
the parameter.
range
- a version range to be intersected with this
.
null
if no intersection is possible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |