public class VersionSet extends AbstractCommonRange implements Iterable<IVersion>
| Constructor and Description |
|---|
VersionSet() |
VersionSet(IVersion version) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IVersion version)
Add another version to the set
|
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 the max range, the min range, and then return a range based on those
values.
|
String |
getType()
Get the range type
|
Collection<IVersion> |
getVersions() |
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
|
Iterator<IVersion> |
iterator() |
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, waitforEach, spliteratorpublic VersionSet()
public VersionSet(IVersion 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 void add(IVersion version)
version - public boolean intersects(IVersionRange yourRange)
IVersionRangeintersects in interface IVersionRangepublic IVersionRange getSimplifiedRange()
getSimplifiedRange in interface IVersionRangeIVersionRange.getSimplifiedRange()public 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 IVersionRangepublic Collection<IVersion> getVersions()
Copyright © 2018. All rights reserved.