public static final class VersionRange.Bound
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
inclusive |
private Version |
version |
| Constructor and Description |
|---|
Bound(Version version,
boolean inclusive)
Creates a new bound with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Version |
getVersion()
Gets the bounding version.
|
int |
hashCode() |
boolean |
isInclusive()
Indicates whether the bounding version is included in the range or not.
|
java.lang.String |
toString() |
private final Version version
private final boolean inclusive
public 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.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object