Package org.eclipse.aether.util.version
Class UnionVersionRange
java.lang.Object
org.eclipse.aether.util.version.UnionVersionRange
- All Implemented Interfaces:
org.eclipse.aether.version.VersionRange
public final class UnionVersionRange
extends Object
implements org.eclipse.aether.version.VersionRange
A union of version ranges.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.version.VersionRange
org.eclipse.aether.version.VersionRange.Bound
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVersion
(org.eclipse.aether.version.Version version) boolean
static org.eclipse.aether.version.VersionRange
from
(Collection<? extends org.eclipse.aether.version.VersionRange> ranges) Creates unionVersionRange
s out of passed inVersionRange
collection.static org.eclipse.aether.version.VersionRange
from
(org.eclipse.aether.version.VersionRange... ranges) Creates unionVersionRange
s out of passed inVersionRange
instances.org.eclipse.aether.version.VersionRange.Bound
org.eclipse.aether.version.VersionRange.Bound
int
hashCode()
toString()
-
Method Details
-
from
public static org.eclipse.aether.version.VersionRange from(org.eclipse.aether.version.VersionRange... ranges) Creates unionVersionRange
s out of passed inVersionRange
instances.- Parameters:
ranges
- The ranges, may be empty array or evennull
.
-
from
public static org.eclipse.aether.version.VersionRange from(Collection<? extends org.eclipse.aether.version.VersionRange> ranges) Creates unionVersionRange
s out of passed inVersionRange
collection.- Parameters:
ranges
- The ranges, may be empty collection or evennull
.
-
containsVersion
- Specified by:
containsVersion
in interfaceorg.eclipse.aether.version.VersionRange
-
getLowerBound
- Specified by:
getLowerBound
in interfaceorg.eclipse.aether.version.VersionRange
-
getUpperBound
- Specified by:
getUpperBound
in interfaceorg.eclipse.aether.version.VersionRange
-
equals
-
hashCode
-
toString
-