public class VersionSet extends Object implements IVersionRange, Iterable<IVersion>
| Constructor and Description |
|---|
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
|
boolean |
intersects(IVersionRange yourRange)
Check if two ranges intersect
|
boolean |
isAtomic()
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() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic VersionSet(IVersion version)
range - public boolean contains(IVersion version)
contains in interface IVersionRangepublic boolean isAtomic()
IVersionRangeisAtomic in interface IVersionRangepublic boolean isSimple()
IVersionRangeisSimple in interface IVersionRangepublic IVersion getMinimum()
IVersionRangegetMinimum in interface IVersionRangepublic IVersion getMaximum()
IVersionRangegetMaximum in interface IVersionRangepublic void add(IVersion version)
version - public boolean intersects(IVersionRange yourRange)
IVersionRangeintersects in interface IVersionRangeCopyright © 2016. All rights reserved.