public class BoundedVersionRange extends AbstractCommonRange implements IVersionRange
| Constructor and Description |
|---|
BoundedVersionRange(IVersion min,
IVersion max)
Inclusive range
|
BoundedVersionRange(SemanticVersion version)
A "range" of a single 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
|
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
|
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
|
void |
setHasErrors(boolean b) |
void |
setType(String type)
Give the range a type.
|
String |
toMavenString()
Returns version range in maven syntax
|
String |
toString() |
compareTo, contains, invertclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, invertcompareTopublic BoundedVersionRange(SemanticVersion version)
version - public boolean contains(IVersion version)
contains in interface IVersionRangepublic boolean isDiscrete()
IVersionRangeisDiscrete in interface IVersionRangepublic boolean isSimple()
IVersionRangeisSimple in interface IVersionRangepublic IVersion getMinimum()
IVersionRangegetMinimum in interface IVersionRangepublic IVersion getMaximum()
IVersionRangegetMaximum in interface IVersionRangepublic String toMavenString()
IVersionRangetoMavenString in interface IVersionRangepublic boolean intersects(IVersionRange yourRange)
IVersionRangeintersects in interface IVersionRangepublic IVersionRange getSimplifiedRange()
IVersionRangegetSimplifiedRange in interface IVersionRangepublic String getType()
IVersionRangegetType in interface IVersionRangepublic void setType(String type)
IVersionRangesetType in interface IVersionRangepublic void setHasErrors(boolean b)
setHasErrors in interface IVersionRangepublic boolean hasErrors()
hasErrors in interface IVersionRangeCopyright © 2018. All rights reserved.