public final class PluginVersion extends Object implements Comparable<PluginVersion>
| Constructor and Description |
|---|
PluginVersion(String versionString,
ReleaseChannel releaseChannel)
Instantiates a new PluginVersion object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PluginVersion v2) |
boolean |
equals(Object obj) |
ReleaseChannel |
getReleaseChannel() |
String |
getVersion()
Gets the version in the form i[.i]*
|
int |
hashCode() |
boolean |
isSignificantlyNewerThan(PluginVersion version2,
int significance)
Checks whether version is significantly newer than version2.
|
String |
toString() |
public PluginVersion(String versionString, ReleaseChannel releaseChannel)
versionString - a String containing the version similar to "version 3.1.23.1" all
non-numeric characters will be removed from the StringreleaseChannel - the release type of this versionpublic String getVersion()
public ReleaseChannel getReleaseChannel()
public int compareTo(PluginVersion v2)
compareTo in interface Comparable<PluginVersion>public boolean isSignificantlyNewerThan(PluginVersion version2, int significance)
version2 - the other versionsignificance - 0-based significanceCopyright © 2016. All rights reserved.