|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.plugin.data.PluginVersion
public class PluginVersion
Plugin version data class.
PluginManager
,
Serialized FormField Summary | |
---|---|
static PluginVersion |
DEFAULT
Simple default v1.0.0 version. |
Constructor Summary | |
---|---|
PluginVersion()
Constructs new plugin version data object. |
|
PluginVersion(int major,
int minor)
Constructs new plugin version data object with the specified major and minor version numbers. |
|
PluginVersion(int major,
int minor,
java.lang.Integer build)
Constructs new plugin version data object with the specified major and minor version numbers. |
Method Summary | |
---|---|
java.lang.Integer |
getBuild()
Returns plugin build version. |
int |
getMajor()
Returns major plugin version. |
int |
getMinor()
Returns minor plugin version. |
boolean |
isNewerThan(PluginVersion ov)
Returns whether this plugin version is newer than the specified one or not. |
boolean |
isOlderThan(PluginVersion ov)
Returns whether this plugin version is older than the specified one or not. |
boolean |
isSame(PluginVersion ov)
Returns whether this plugin version is the same as the specified one or not. |
void |
setBuild(java.lang.Integer build)
Sets plugin build version. |
void |
setMajor(int major)
Sets major plugin version. |
void |
setMinor(int minor)
Sets minor plugin version |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PluginVersion DEFAULT
Constructor Detail |
---|
public PluginVersion()
public PluginVersion(int major, int minor)
major
- major version numberminor
- minor version numberpublic PluginVersion(int major, int minor, java.lang.Integer build)
major
- major version numberminor
- minor version numberbuild
- build version numberMethod Detail |
---|
public int getMajor()
public void setMajor(int major)
major
- new major plugin versionpublic int getMinor()
public void setMinor(int minor)
minor
- new minor plugin versionpublic java.lang.Integer getBuild()
public void setBuild(java.lang.Integer build)
build
- plugin build versionpublic boolean isNewerThan(PluginVersion ov)
ov
- other plugin version
public boolean isOlderThan(PluginVersion ov)
ov
- other plugin version
public boolean isSame(PluginVersion ov)
ov
- other plugin version
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |