Class PluginVersion
- java.lang.Object
-
- io.jenkins.plugins.propelo.commons.models.PluginVersion
-
- All Implemented Interfaces:
Comparable<PluginVersion>
public class PluginVersion extends Object implements Comparable<PluginVersion>
-
-
Field Summary
Fields Modifier and Type Field Description static PluginVersion
EMPTY_PLUGIN_VERSION
-
Constructor Summary
Constructors Constructor Description PluginVersion(String version, int majorVersion, int minorVersion, int patchVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PluginVersion o)
boolean
equals(Object o)
Integer
getMajorVersion()
Integer
getMinorVersion()
Integer
getPatchVersion()
String
getVersion()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY_PLUGIN_VERSION
public static final PluginVersion EMPTY_PLUGIN_VERSION
-
-
Constructor Detail
-
PluginVersion
public PluginVersion(String version, int majorVersion, int minorVersion, int patchVersion)
-
-
Method Detail
-
getVersion
public String getVersion()
-
getMajorVersion
public Integer getMajorVersion()
-
getMinorVersion
public Integer getMinorVersion()
-
getPatchVersion
public Integer getPatchVersion()
-
compareTo
public int compareTo(@NotNull PluginVersion o)
- Specified by:
compareTo
in interfaceComparable<PluginVersion>
-
-