public class VersionRange extends AbstractCommonRange
| Constructor and Description |
|---|
VersionRange(String operator,
SemanticVersion version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IVersion version) |
boolean |
contains(IVersionRange yourRange)
Check if one range contains another range.
|
IVersion |
getMaximum()
Return the maximum version that satisfies this range
|
IVersion |
getMinimum()
Return the minimum version that satisfies this range
|
IVersionRange |
getSimplifiedRange()
Get a simplified version range, suitable for users to read quickly
|
String |
getType()
Get the range type
|
boolean |
hasErrors() |
boolean |
intersects(IVersionRange yourRange)
Check if two ranges intersect
|
IVersionRange |
invert()
Generate a range that is the inverse of the provided range
|
boolean |
isDiscrete()
Returns true if this range is a simple singular version
|
boolean |
isSimple()
Return true if this is a simple range which has no gaps
|
boolean |
isUnbounded()
An unbounded range goes to infinity
|
void |
setHasErrors(boolean b) |
void |
setType(String type)
Give the range a type.
|
String |
toMavenString()
Returns version range in maven syntax
|
String |
toString() |
compareTopublic VersionRange(String operator, SemanticVersion version)
operator - version - public boolean contains(IVersion version)
public boolean isDiscrete()
IVersionRangepublic boolean isSimple()
IVersionRangepublic IVersion getMinimum()
IVersionRangepublic IVersion getMaximum()
IVersionRangepublic String toMavenString()
IVersionRangepublic boolean intersects(IVersionRange yourRange)
IVersionRangepublic boolean contains(IVersionRange yourRange)
IVersionRangecontains in interface IVersionRangecontains in class AbstractCommonRangepublic IVersionRange getSimplifiedRange()
IVersionRangepublic String getType()
IVersionRangepublic void setType(String type)
IVersionRangepublic void setHasErrors(boolean b)
public boolean hasErrors()
public boolean isUnbounded()
public IVersionRange invert()
IVersionRangeinvert in interface IVersionRangeinvert in class AbstractCommonRangeCopyright © 2018. All rights reserved.