Package com.macrofocus.application
Class SimpleVersionModel
- java.lang.Object
-
- com.macrofocus.application.SimpleVersionModel
-
- All Implemented Interfaces:
VersionModel
,java.io.Serializable
,java.lang.Comparable<VersionModel>
public class SimpleVersionModel extends java.lang.Object implements VersionModel, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build)
SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build, java.text.NumberFormat majorNumberFormat, java.text.NumberFormat minorNumberFormat, java.text.NumberFormat patchNumberFormat, java.text.NumberFormat buildNumberFormat)
SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build, java.util.Date releaseDate)
SimpleVersionModel(java.lang.String version)
SimpleVersionModel(java.lang.String version, java.lang.Package p)
SimpleVersionModel(java.lang.String version, java.util.Date releaseDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(VersionModel o)
boolean
equals(java.lang.Object o)
java.lang.Integer
getBuild()
java.lang.String
getBuildString()
java.lang.Integer
getMajor()
java.lang.String
getMajorMinorPatchString()
java.lang.Integer
getMinor()
java.lang.Integer
getPatch()
java.util.Date
getReleaseDate()
java.lang.String
getReleaseDateString()
java.lang.String
getString()
java.lang.String
getStringUnderscore()
int
hashCode()
boolean
isEqualOrHigher(VersionModel o)
void
setBuildNumberFormat(java.text.NumberFormat buildNumberFormat)
void
setMajorNumberFormat(java.text.NumberFormat majorNumberFormat)
void
setMinorNumberFormat(java.text.NumberFormat minorNumberFormat)
void
setPatchNumberFormat(java.text.NumberFormat patchNumberFormat)
java.lang.String
toString()
-
-
-
Constructor Detail
-
SimpleVersionModel
public SimpleVersionModel(java.lang.String version, java.lang.Package p)
-
SimpleVersionModel
public SimpleVersionModel(java.lang.String version)
-
SimpleVersionModel
public SimpleVersionModel(java.lang.String version, java.util.Date releaseDate)
-
SimpleVersionModel
public SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build)
-
SimpleVersionModel
public SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build, java.util.Date releaseDate)
-
SimpleVersionModel
public SimpleVersionModel(java.lang.Integer major, java.lang.Integer minor, java.lang.Integer patch, java.lang.Integer build, java.text.NumberFormat majorNumberFormat, java.text.NumberFormat minorNumberFormat, java.text.NumberFormat patchNumberFormat, java.text.NumberFormat buildNumberFormat)
-
-
Method Detail
-
getBuild
public java.lang.Integer getBuild()
- Specified by:
getBuild
in interfaceVersionModel
-
getMajor
public java.lang.Integer getMajor()
- Specified by:
getMajor
in interfaceVersionModel
-
getMinor
public java.lang.Integer getMinor()
- Specified by:
getMinor
in interfaceVersionModel
-
getPatch
public java.lang.Integer getPatch()
- Specified by:
getPatch
in interfaceVersionModel
-
getReleaseDate
public java.util.Date getReleaseDate()
- Specified by:
getReleaseDate
in interfaceVersionModel
-
setMajorNumberFormat
public void setMajorNumberFormat(java.text.NumberFormat majorNumberFormat)
-
setMinorNumberFormat
public void setMinorNumberFormat(java.text.NumberFormat minorNumberFormat)
-
setPatchNumberFormat
public void setPatchNumberFormat(java.text.NumberFormat patchNumberFormat)
-
setBuildNumberFormat
public void setBuildNumberFormat(java.text.NumberFormat buildNumberFormat)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(VersionModel o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<VersionModel>
-
isEqualOrHigher
public boolean isEqualOrHigher(VersionModel o)
- Specified by:
isEqualOrHigher
in interfaceVersionModel
-
getMajorMinorPatchString
public java.lang.String getMajorMinorPatchString()
- Specified by:
getMajorMinorPatchString
in interfaceVersionModel
-
getBuildString
public java.lang.String getBuildString()
- Specified by:
getBuildString
in interfaceVersionModel
-
getReleaseDateString
public java.lang.String getReleaseDateString()
- Specified by:
getReleaseDateString
in interfaceVersionModel
-
getString
public java.lang.String getString()
- Specified by:
getString
in interfaceVersionModel
-
getStringUnderscore
public java.lang.String getStringUnderscore()
- Specified by:
getStringUnderscore
in interfaceVersionModel
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-