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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VersionRange.Boundprivate final Set<VersionRange>private final VersionRange.Bound -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnionVersionRange(Collection<? extends VersionRange> ranges) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsVersion(Version version) Determines whether the specified version is contained within this range.booleanstatic VersionRangefrom(Collection<? extends VersionRange> ranges) static VersionRangefrom(VersionRange... ranges) Gets a lower bound (if any) for this range.Gets an upper bound (if any) for this range.inthashCode()toString()
-
Field Details
-
ranges
-
lowerBound
-
upperBound
-
-
Constructor Details
-
UnionVersionRange
-
-
Method Details
-
from
-
from
-
containsVersion
Description copied from interface:VersionRangeDetermines whether the specified version is contained within this range.- Specified by:
containsVersionin interfaceVersionRange- Parameters:
version- The version to test, must not benull.- Returns:
trueif this range contains the specified version,falseotherwise.
-
getLowerBound
Description copied from interface:VersionRangeGets 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:
getLowerBoundin interfaceVersionRange- Returns:
- A lower bound for this range or
nullis there is none.
-
getUpperBound
Description copied from interface:VersionRangeGets 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:
getUpperBoundin interfaceVersionRange- Returns:
- An upper bound for this range or
nullis there is none.
-
equals
-
hashCode
public int hashCode() -
toString
-