E - a MajorMinorVersion.public class VersionRange<E extends MajorMinorVersion> extends Object
| Constructor and Description |
|---|
VersionRange(E minVersion,
E maxVersion)
Creates a version range.
|
| Modifier and Type | Method and Description |
|---|---|
E |
getMaxVersion()
Returns the upper version bound.
|
E |
getMinVersion()
Returns the lower version bound.
|
boolean |
isWithinRange(E version)
Uses the min and max version's
MajorMinorVersion.compare(org.arp.javautil.version.MajorMinorVersion)
methods to determine whether the provided version is within range. |
public E getMinVersion()
public E getMaxVersion()
public boolean isWithinRange(E version)
MajorMinorVersion.compare(org.arp.javautil.version.MajorMinorVersion)
methods to determine whether the provided version is within range.version - the version to check.true if the version to check is within range,
false if not.Copyright © 2012–2020 Emory University. All rights reserved.