public interface IVersionRange extends Comparable<IVersionRange>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IVersion version) |
boolean |
contains(IVersionRange trange)
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
|
void |
setHasErrors(boolean b) |
void |
setType(String type)
Give the range a type.
|
String |
toMavenString()
Returns version range in maven syntax
|
compareToboolean contains(IVersion version)
boolean isDiscrete()
IVersion getMinimum()
IVersion getMaximum()
boolean isSimple()
boolean intersects(IVersionRange yourRange)
boolean contains(IVersionRange trange)
IVersionRange getSimplifiedRange()
String getType()
void setType(String type)
void setHasErrors(boolean b)
boolean hasErrors()
IVersionRange invert()
String toMavenString()
Copyright © 2018. All rights reserved.