public class OrRange extends AbstractCommonRange
| Constructor and Description |
|---|
OrRange(IVersionRange range1,
IVersionRange range2) |
OrRange(List<IVersionRange> results) |
| Modifier and Type | Method and Description |
|---|---|
OrRange |
add(IVersionRange range) |
boolean |
contains(IVersion version) |
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.
|
int |
size() |
String |
toMavenString()
Returns version range in maven syntax
|
String |
toString() |
compareTo, containspublic OrRange(IVersionRange range1, IVersionRange range2)
public OrRange(List<IVersionRange> results)
public boolean contains(IVersion version)
public boolean isDiscrete()
IVersionRangepublic boolean isSimple()
IVersionRangepublic IVersion getMinimum()
IVersionRangepublic IVersion getMaximum()
IVersionRangepublic 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 OrRange add(IVersionRange range)
public IVersionRange invert()
IVersionRangeinvert in interface IVersionRangeinvert in class AbstractCommonRangepublic int size()
public IVersionRange first()
public IVersionRange last()
Copyright © 2018. All rights reserved.