|
Forge - Parent 2.0.0.Alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.container.versions.SingleVersionRange
public class SingleVersionRange
Constructor Summary | |
---|---|
SingleVersionRange(Version version)
|
Method Summary | |
---|---|
VersionRange |
getIntersection(VersionRange... ranges)
Return the intersection of this VersionRange with the given VersionRange instances (never
null .) |
Version |
getMax()
Get the maximum Version (never null .) |
Version |
getMin()
Get the minimum Version (never null .) |
boolean |
includes(Version version)
Return true if this VersionRange includes the given Version . |
boolean |
isEmpty()
Return true if this VersionRange is empty. |
boolean |
isExact()
Return true if this VersionRange contains only one single Version . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleVersionRange(Version version)
Method Detail |
---|
public boolean isEmpty()
VersionRange
true
if this VersionRange
is empty.
isEmpty
in interface VersionRange
public boolean isExact()
VersionRange
true
if this VersionRange
contains only one single Version
.
isExact
in interface VersionRange
public Version getMin()
VersionRange
Version
(never null
.)
getMin
in interface VersionRange
public Version getMax()
VersionRange
Version
(never null
.)
getMax
in interface VersionRange
public boolean includes(Version version)
VersionRange
VersionRange
includes the given Version
.
includes
in interface VersionRange
public VersionRange getIntersection(VersionRange... ranges)
VersionRange
VersionRange
with the given VersionRange
instances (never
null
.)
getIntersection
in interface VersionRange
|
Forge - Parent 2.0.0.Alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |