public class VersionRange extends Object implements IVersionRange
| Constructor and Description |
|---|
VersionRange(String operator,
SemanticVersion version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IVersion version) |
IVersion |
getMaximum()
Return the maximum version that satisfies this range
|
IVersion |
getMinimum()
Return the minimum version that satisfies this range
|
boolean |
intersects(IVersionRange yourRange)
Check if two ranges intersect
|
boolean |
isAtomic()
Returns true if this range is a simple singular version
|
boolean |
isSimple()
Return true if this is a simple range which has no gaps
|
String |
toString() |
public VersionRange(String operator, SemanticVersion version)
operator - version - public boolean contains(IVersion version)
contains in interface IVersionRangepublic boolean isAtomic()
IVersionRangeisAtomic in interface IVersionRangepublic boolean isSimple()
IVersionRangeisSimple in interface IVersionRangepublic IVersion getMinimum()
IVersionRangegetMinimum in interface IVersionRangepublic IVersion getMaximum()
IVersionRangegetMaximum in interface IVersionRangepublic boolean intersects(IVersionRange yourRange)
IVersionRangeintersects in interface IVersionRangeCopyright © 2016. All rights reserved.