public enum VersionSupport extends Enum<VersionSupport>
Do not remove this header!
Version 1.0
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Enum Constant and Description |
|---|
VERSION_1_10_R1 |
VERSION_1_11_R1 |
VERSION_1_12_R1 |
VERSION_1_8_R1 |
VERSION_1_8_R2 |
VERSION_1_8_R3 |
VERSION_1_9_R1 |
VERSION_1_9_R2 |
| Modifier and Type | Method and Description |
|---|---|
static VersionSupport |
getGreatestVersionSupported()
Returns the greatest version supported by the plugin
|
static VersionSupport |
getLowestVersionSupported()
Returns the lowest version supported by the plugin
|
static VersionSupport |
getServerVersion()
Returns the versionSupport from the current Server Version.
|
String |
getSimpleVersionText()
Returns the simpleVersionText
|
double |
getVersionCode()
Returns the versionCode
|
String |
getVersionText()
Returns the versionText
|
static boolean |
isServerVersionSupported(String pluginName,
String prefix)
Returns if the serverVersion is supported by the plugin
|
boolean |
isVersionGreaterThan(VersionSupport versionSupport)
Checks if this version is greater than the given versionSupport by parameter
|
boolean |
isVersionLowerThan(VersionSupport versionSupport)
Checks if this version is lower than the given versionSupport by parameter
|
boolean |
isVersionSameOrGreaterThan(VersionSupport versionSupport)
Checks if this version is same or greater than the given versionSupport by parameter
|
boolean |
isVersionSameOrLowerThan(VersionSupport versionSupport)
Checks if this version is same or lower than the given versionSupport by parameter
|
static VersionSupport |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VersionSupport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VersionSupport VERSION_1_8_R1
public static final VersionSupport VERSION_1_8_R2
public static final VersionSupport VERSION_1_8_R3
public static final VersionSupport VERSION_1_9_R1
public static final VersionSupport VERSION_1_9_R2
public static final VersionSupport VERSION_1_10_R1
public static final VersionSupport VERSION_1_11_R1
public static final VersionSupport VERSION_1_12_R1
public static VersionSupport[] values()
for (VersionSupport c : VersionSupport.values()) System.out.println(c);
public static VersionSupport valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getSimpleVersionText()
public String getVersionText()
public double getVersionCode()
public boolean isVersionSameOrGreaterThan(VersionSupport versionSupport)
versionSupport - versionSupportpublic boolean isVersionSameOrLowerThan(VersionSupport versionSupport)
versionSupport - versionSupportpublic boolean isVersionGreaterThan(VersionSupport versionSupport)
versionSupport - versionSupportpublic boolean isVersionLowerThan(VersionSupport versionSupport)
versionSupport - versionSupportpublic static VersionSupport getGreatestVersionSupported()
public static VersionSupport getLowestVersionSupported()
public static boolean isServerVersionSupported(String pluginName, String prefix)
pluginName - pluginNameprefix - prefixpublic static VersionSupport getServerVersion()
Copyright © 2017. All rights reserved.