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 SummaryNested classes/interfaces inherited from interface org.eclipse.aether.version.VersionRangeVersionRange.Bound
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainsVersion(Version version) Determines whether the specified version is contained within this range.booleanstatic VersionRangefrom(Collection<? extends VersionRange> ranges) Creates unionVersionRanges out of passed inVersionRangecollection.static VersionRangefrom(VersionRange... ranges) Creates unionVersionRanges out of passed inVersionRangeinstances.Gets a lower bound (if any) for this range.Gets an upper bound (if any) for this range.inthashCode()toString()
- 
Method Details- 
fromCreates unionVersionRanges out of passed inVersionRangeinstances.- Parameters:
- ranges- the ranges, may be empty array or even- null
 
- 
fromCreates unionVersionRanges out of passed inVersionRangecollection.- Parameters:
- ranges- the ranges, may be empty collection or even- null
 
- 
containsVersionDescription copied from interface:VersionRangeDetermines whether the specified version is contained within this range.- Specified by:
- containsVersionin interface- VersionRange
- Parameters:
- version- The version to test, must not be- null.
- Returns:
- trueif this range contains the specified version,- falseotherwise.
 
- 
getLowerBoundDescription 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 interface- VersionRange
- Returns:
- A lower bound for this range or nullis there is none.
 
- 
getUpperBoundDescription 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 interface- VersionRange
- Returns:
- An upper bound for this range or nullis there is none.
 
- 
equals
- 
hashCode
- 
toString
 
-