Package org.eclipse.aether.version
Class VersionRange.Bound
- java.lang.Object
-
- org.eclipse.aether.version.VersionRange.Bound
-
- Enclosing interface:
- VersionRange
public static final class VersionRange.Bound extends java.lang.ObjectA bound of a version range.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)VersiongetVersion()Gets the bounding version.inthashCode()booleanisInclusive()Indicates whether the bounding version is included in the range or not.java.lang.StringtoString()
-
-
-
Field Detail
-
version
private final Version version
-
inclusive
private final boolean inclusive
-
-
Constructor Detail
-
Bound
public Bound(Version version, boolean inclusive)
Creates a new bound with the specified properties.- Parameters:
version- The bounding version, must not benull.inclusive- A flag whether the specified version is included in the range or not.
-
-
Method Detail
-
getVersion
public Version getVersion()
Gets the bounding version.- Returns:
- The bounding version, never
null.
-
isInclusive
public boolean isInclusive()
Indicates whether the bounding version is included in the range or not.- Returns:
trueif the bounding version is included in the range,falseif not.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-