public class AndRange extends AbstractCommonRange
| Modifier and Type | Field and Description |
|---|---|
protected IVersionRange |
range1 |
protected IVersionRange |
range2 |
| Constructor and Description |
|---|
AndRange(IVersionRange range1,
IVersionRange range2)
And the ranges, ordering them in Vor's preferred order.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IVersion version) |
boolean |
contains(IVersionRange yourRange)
Check if one range contains another range.
|
IVersionRange |
first() |
IVersion |
getMaximum()
Return the maximum version that satisfies this range
|
IVersion |
getMinimum()
Return the minimum version that satisfies this range
|
String |
getOperator() |
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
|
IVersionRange |
last() |
void |
setHasErrors(boolean b) |
void |
setType(String type)
Give the range a type.
|
String |
toMavenString()
Returns version range in maven syntax
|
String |
toString() |
compareToprotected IVersionRange range1
protected IVersionRange range2
public AndRange(IVersionRange range1, IVersionRange range2) throws InvalidRangeRuntimeException
InvalidRangeRuntimeExceptionpublic boolean contains(IVersion version)
public boolean isDiscrete()
IVersionRangepublic boolean isSimple()
IVersionRangepublic IVersion getMinimum()
IVersionRangepublic IVersion getMaximum()
IVersionRangepublic boolean contains(IVersionRange yourRange)
IVersionRangecontains in interface IVersionRangecontains in class AbstractCommonRangepublic String getOperator()
public boolean intersects(IVersionRange yourRange)
IVersionRangepublic IVersionRange getSimplifiedRange()
IVersionRangepublic String getType()
IVersionRangepublic void setType(String type)
IVersionRangepublic void setHasErrors(boolean b)
public boolean hasErrors()
public String toMavenString()
IVersionRangepublic IVersionRange invert()
IVersionRangeinvert in interface IVersionRangeinvert in class AbstractCommonRangepublic IVersionRange first()
public IVersionRange last()
Copyright © 2018. All rights reserved.