public class DefaultVersionRange extends Object implements VersionRange
| Modifier and Type | Field and Description |
|---|---|
static DefaultVersionRange |
EVERYTHING |
| Constructor and Description |
|---|
DefaultVersionRange(Version min,
boolean minInclusive,
Version max,
boolean maxInclusive) |
| 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 static final DefaultVersionRange EVERYTHING
public Version getMin()
VersionRangeVersion (never null.)getMin in interface VersionRangepublic boolean isMinInclusive()
VersionRangetrue if VersionRange.getMin() is inclusive.isMinInclusive in interface VersionRangepublic Version getMax()
VersionRangeVersion (never null.)getMax in interface VersionRangepublic boolean isMaxInclusive()
VersionRangetrue if VersionRange.getMax() is inclusive.isMaxInclusive in interface VersionRangepublic boolean isEmpty()
VersionRangetrue if this VersionRange is empty.isEmpty in interface VersionRangepublic boolean isExact()
VersionRangeisExact in interface VersionRangepublic VersionRange getIntersection(VersionRange... ranges)
VersionRangegetIntersection in interface VersionRangepublic boolean includes(Version version)
VersionRangeVersionRange includes the given Version.includes in interface VersionRangeCopyright © 2014 JBoss by Red Hat. All rights reserved.