Compares this OSGiVersionRange object to another object.
Compares this OSGiVersionRange object to another object.
A version range is considered to be *equal to* another version range if both the endpoints and their types are equal or if both version ranges are empty.
true
if that
is a OSGiVersionRange
and is equal to this object; false
otherwise.
The type of the left endpoint of this version range.
The type of the left endpoint of this version range.
OSGiVersioRange#LeftClosed if the left endpoint is closed or OSGiVersioRange#LeftOpen if the left endpoint is open.
The type of the right endpoint of this version range.
The type of the right endpoint of this version range.
OSGiVersionRange#RIGHT_CLOSED if the right endpoint is closed or OSGiVersionRange#RIGHT_OPEN if the right endpoint is open.
Returns a hash code value for the object.
Returns a hash code value for the object.
Returns whether this version range includes the specified version.
Returns whether this version range includes the specified version.
The version to test for inclusion in this version range.
true
if the specified version is included in this version
range; false
otherwise.
Returns the intersection of this version range with the specified version ranges.
Returns the intersection of this version range with the specified version ranges.
The version ranges to intersect with this version range.
A version range representing the intersection of this version range and the specified version ranges. If no version ranges are specified, then this version range is returned.
Returns whether this version range contains only a single version.
Returns whether this version range contains only a single version.
true
if this version range contains only a single version; false
otherwise.
The left endpoint of this version range.
The right endpoint of this version range.
The right endpoint of this version range.
May be null
which indicates the right endpoint is _Infinity_.
Returns the string representation of this version range.
Returns the string representation of this version range.
The format of the version range string will be a version string if the
right end point is _Infinity_ (null
) or an interval string.
The string representation of this version range.
(oSGiVersionRange: StringAdd).self
(oSGiVersionRange: StringFormat).self
(oSGiVersionRange: ArrowAssoc[OSGiVersionRange]).x
(Since version 2.10.0) Use leftOfArrow
instead
(oSGiVersionRange: Ensuring[OSGiVersionRange]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Version range. A version range is an interval describing a set of versions.
A range has a left (lower) endpoint and a right (upper) endpoint. Each endpoint can be open (excluded from the set) or closed (included in the set).
OSGIVersionRange
objects are immutable.