public static final class VersionRange.Bound extends Object
Constructor and Description |
---|
VersionRange.Bound(Version version,
boolean inclusive)
Creates a new bound with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Version |
getVersion()
Gets the bounding version.
|
int |
hashCode() |
boolean |
isInclusive()
Indicates whether the bounding version is included in the range or not.
|
String |
toString() |
public VersionRange.Bound(Version version, boolean inclusive)
version
- The bounding version, must not be null
.inclusive
- A flag whether the specified version is included in the range or not.public Version getVersion()
null
.public boolean isInclusive()
true
if the bounding version is included in the range, false
if not.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.