Package top.focess.qq.api.util.version
Class Version
- java.lang.Object
-
- top.focess.qq.api.util.version.Version
-
public class Version extends Object
Represents a version of a plugin.
-
-
Field Summary
Fields Modifier and Type Field Description static VersionALPHA_VERSIONRepresents an alpha version of a plugin.static VersionBETA_VERSIONRepresents a beta version of a plugin.static VersionBUILD_VERSIONRepresents a build version of a plugin.static VersionDEFAULT_VERSIONRepresents a default release version of a plugin.
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBuild()intgetMajor()intgetMinor()intgetRevision()StringtoString()
-
-
-
Field Detail
-
ALPHA_VERSION
public static final Version ALPHA_VERSION
Represents an alpha version of a plugin.
-
BETA_VERSION
public static final Version BETA_VERSION
Represents a beta version of a plugin.
-
BUILD_VERSION
public static final Version BUILD_VERSION
Represents a build version of a plugin.
-
DEFAULT_VERSION
public static final Version DEFAULT_VERSION
Represents a default release version of a plugin.
-
-
Constructor Detail
-
Version
public Version(int major, int minor, int revision, String build)Constructs a new version with the specified version numbers and build.- Parameters:
major- the major version numberminor- the minor version numberrevision- the revision version numberbuild- the build version
-
Version
public Version(int major, int minor, int revision)Constructs a new version with the specified version numbers.- Parameters:
major- the major version numberminor- the minor version numberrevision- the revision version number
-
Version
public Version(int major, int minor)Constructs a new version with the specified version numbers.- Parameters:
major- the major version numberminor- the minor version number
-
Version
public Version(String version)
Constructs a new version with the specified version.- Parameters:
version- the version to be parsed.
-
-