Constructor and Description |
---|
Version(String versionString)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAtLeast(Version v,
boolean exclusive)
Returns
|
boolean |
isAtMost(Version v,
boolean exclusive)
Returns
|
boolean |
isEqualsTo(Version v)
Returns
|
String |
toString() |
public Version(String versionString)
versionString
- A string of the form Integer.MAX_VALUE
public boolean isAtLeast(Version v, boolean exclusive)
Note that the following is true:
boolean b;
b =
v
- The version to compare to.exclusive
- Match down-to-version but not including.public boolean isAtMost(Version v, boolean exclusive)
Note that the following is true:
boolean b;
b =
v
- The version to compare to.exclusive
- Match up-to-version but not including.public boolean isEqualsTo(Version v)
Note that the following is true:
boolean b;
b =
v
- The version to compare to.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.