public class VersionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
date
The release date.
|
java.text.DateFormat |
DATE_FORMAT_NUMBER
The short date format (e.g.
|
java.text.DateFormat |
DATE_FORMAT_TEXT
The text date format (e.g.
|
java.text.DateFormat |
DATE_FORMAT_TIMESTAMP
The short date format (e.g.
|
protected static VersionInfo |
instance
The version info singleton.
|
protected java.lang.String |
version
The version string (e.g.
|
Modifier | Constructor and Description |
---|---|
protected |
VersionInfo()
Create a new version info object.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Get the release date.
|
static VersionInfo |
getInstance()
Get the version info object.
|
java.lang.String |
getNumberDateString()
Get the release date as short number string
(format=yyyy/MM/dd, e.g.
|
java.lang.String |
getTextDateString()
Get the release date as long text string
(format=MMMM d, yyyy, e.g.
|
java.lang.String |
getTimestamp()
Get the release date as timestamp string
(format=yyyyMMdd.HHmmss, e.g.
|
java.lang.String |
getVersion()
Get the version string.
|
protected static final VersionInfo instance
public final java.text.DateFormat DATE_FORMAT_TEXT
public final java.text.DateFormat DATE_FORMAT_NUMBER
public final java.text.DateFormat DATE_FORMAT_TIMESTAMP
protected java.lang.String version
protected java.util.Date date
public static VersionInfo getInstance()
public java.lang.String getVersion()
public java.util.Date getDate()
public java.lang.String getTextDateString()
public java.lang.String getNumberDateString()
public java.lang.String getTimestamp()