public class Version extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
major
The major version
|
protected int |
minor
The minor version
|
protected int |
patch
The patch version
|
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static String |
getEdition(String v) |
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
static String |
getVersion(String v) |
int |
hashCode() |
static Version |
of(int major,
int minor,
int patch) |
static Version |
of(String v) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
void |
setPatch(int patch) |
String |
toString() |
protected int major
protected int minor
protected int patch
public static Version of(int major, int minor, int patch)
public int getMajor()
public void setMajor(int major)
public int getMinor()
public void setMinor(int minor)
public int getPatch()
public void setPatch(int patch)
Copyright © 2023 CrafterCMS. All rights reserved.