public class Version extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Version |
ALPHA_VERSION
Represents an alpha version of a plugin.
|
static Version |
BETA_VERSION
Represents a beta version of a plugin.
|
static Version |
DEFAULT_VERSION
Represents a default release version of a plugin.
|
| 构造器和说明 |
|---|
Version(int major,
int minor)
Constructs a new version with the specified version numbers.
|
Version(int major,
int minor,
int revision)
Constructs a new version with the specified version numbers.
|
Version(int major,
int minor,
int revision,
String build)
Constructs a new version with the specified version numbers and build.
|
Version(String version)
Constructs a new version with the specified version.
|
public static final Version ALPHA_VERSION
public static final Version BETA_VERSION
public static final Version DEFAULT_VERSION
public Version(int major,
int minor,
int revision,
String build)
major - the major version numberminor - the minor version numberrevision - the revision version numberbuild - the build versionpublic Version(int major,
int minor,
int revision)
major - the major version numberminor - the minor version numberrevision - the revision version numberpublic Version(int major,
int minor)
major - the major version numberminor - the minor version numberpublic Version(String version)
version - the version to be parsed.Copyright © 2022. All rights reserved.