public class SingleVersionRange extends Object implements VersionRange
| Constructor and Description |
|---|
SingleVersionRange(Version version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
VersionRange |
getIntersection(VersionRange... ranges)
|
Version |
getMax()
Get the maximum
Version (never null.) |
Version |
getMin()
Get the minimum
Version (never null.) |
int |
hashCode() |
boolean |
includes(Version version)
Return true if this
VersionRange includes the given Version. |
boolean |
isEmpty()
Return
true if this VersionRange is empty. |
boolean |
isExact()
|
boolean |
isMaxInclusive()
Return
true if VersionRange.getMax() is inclusive. |
boolean |
isMinInclusive()
Return
true if VersionRange.getMin() is inclusive. |
String |
toString() |
public SingleVersionRange(Version version)
public boolean isEmpty()
VersionRangetrue if this VersionRange is empty.isEmpty in interface VersionRangepublic boolean isExact()
VersionRangeisExact in interface VersionRangepublic Version getMin()
VersionRangeVersion (never null.)getMin in interface VersionRangepublic Version getMax()
VersionRangeVersion (never null.)getMax in interface VersionRangepublic boolean includes(Version version)
VersionRangeVersionRange includes the given Version.includes in interface VersionRangepublic VersionRange getIntersection(VersionRange... ranges)
VersionRangegetIntersection in interface VersionRangepublic boolean isMaxInclusive()
VersionRangetrue if VersionRange.getMax() is inclusive.isMaxInclusive in interface VersionRangepublic boolean isMinInclusive()
VersionRangetrue if VersionRange.getMin() is inclusive.isMinInclusive in interface VersionRangeCopyright © 2014 JBoss by Red Hat. All rights reserved.