Package org.eclipse.aether.util.version
Class UnionVersionRange
java.lang.Object
org.eclipse.aether.util.version.UnionVersionRange
- All Implemented Interfaces:
VersionRange
A union of version ranges.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.version.VersionRange
VersionRange.Bound
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVersion
(Version version) Determines whether the specified version is contained within this range.boolean
static VersionRange
from
(Collection<? extends VersionRange> ranges) Creates unionVersionRange
s out of passed inVersionRange
collection.static VersionRange
from
(VersionRange... ranges) Creates unionVersionRange
s out of passed inVersionRange
instances.Gets a lower bound (if any) for this range.Gets an upper bound (if any) for this range.int
hashCode()
toString()
-
Method Details
-
from
Creates unionVersionRange
s out of passed inVersionRange
instances.- Parameters:
ranges
- The ranges, may be empty array or evennull
.
-
from
Creates unionVersionRange
s out of passed inVersionRange
collection.- Parameters:
ranges
- The ranges, may be empty collection or evennull
.
-
containsVersion
Description copied from interface:VersionRange
Determines whether the specified version is contained within this range.- Specified by:
containsVersion
in interfaceVersionRange
- Parameters:
version
- The version to test, must not benull
.- Returns:
true
if this range contains the specified version,false
otherwise.
-
getLowerBound
Description copied from interface:VersionRange
Gets a lower bound (if any) for this range. If existent, this range does not contain any version smaller than its lower bound. Note that complex version ranges might exclude some versions even within their bounds.- Specified by:
getLowerBound
in interfaceVersionRange
- Returns:
- A lower bound for this range or
null
is there is none.
-
getUpperBound
Description copied from interface:VersionRange
Gets an upper bound (if any) for this range. If existent, this range does not contain any version greater than its upper bound. Note that complex version ranges might exclude some versions even within their bounds.- Specified by:
getUpperBound
in interfaceVersionRange
- Returns:
- An upper bound for this range or
null
is there is none.
-
equals
-
hashCode
-
toString
-