|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.VersionImpl
A simple implementation of Version
.
Field Summary | |
protected long |
buildNumber
|
protected long |
buildTimeStamp
|
protected int |
major
|
protected int |
micro
|
protected int |
minor
|
protected java.lang.String |
quality
|
Fields inherited from interface org.sadun.util.Version |
NOT_VALUED |
Constructor Summary | |
VersionImpl(int major,
int minor,
int micro)
|
|
VersionImpl(int major,
int minor,
int micro,
long buildNumber)
|
|
VersionImpl(int major,
int minor,
int micro,
long buildNumber,
long buildTimeStamp)
|
|
VersionImpl(int major,
int minor,
int micro,
java.lang.String quality)
|
|
VersionImpl(int major,
int minor,
int micro,
java.lang.String quality,
long buildNumber)
|
|
VersionImpl(int major,
int minor,
int micro,
java.lang.String quality,
long buildNumber,
long buildTimeStamp)
|
|
VersionImpl(int major,
int minor,
int micro,
java.lang.String quality,
long buildNumber,
java.lang.String buildTimeStamp)
|
|
VersionImpl(int major,
int minor,
int micro,
java.lang.String quality,
long buildNumber,
java.lang.String buildTimeStamp,
java.util.Locale locale)
|
|
VersionImpl(int major,
int minor,
long buildNumber)
|
Method Summary | |
long |
getBuildNumber()
Return the build number, or NOT_VALUED if there is no such number. |
long |
getBuildTimestamp()
Return the build timestamp, or NOT_VALUED if there is no such timestamp. |
long |
getBuildTimeStamp()
|
java.lang.String |
getFullDescription()
Return a full description of the version. |
int |
getMajor()
|
int |
getMajorNumber()
Return the major version number, or NOT_VALUED if there is no such number. |
int |
getMicro()
|
int |
getMicroNumber()
Return the micro version number, or NOT_VALUED if there is no such number. |
int |
getMinor()
|
int |
getMinorNumber()
Return the minor version number, or NOT_VALUED if there is no such number. |
java.lang.String |
getQuality()
|
java.lang.String |
getQualityState()
Return the quality state string, or null if none is set. |
java.lang.String |
getShortDescription()
Return a short description of the version. |
boolean |
hasInfoEnough()
Return true if the object contains information enough to be externally meaningful. |
void |
setBuildNumber(long buildNumber)
|
void |
setBuildTimeStamp(long buildTimeStamp)
|
void |
setMajor(int major)
|
void |
setMicro(int micro)
|
void |
setMinor(int minor)
|
void |
setQuality(java.lang.String quality)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int major
protected int minor
protected int micro
protected java.lang.String quality
protected long buildNumber
protected long buildTimeStamp
Constructor Detail |
public VersionImpl(int major, int minor, int micro, java.lang.String quality, long buildNumber, long buildTimeStamp)
public VersionImpl(int major, int minor, int micro, long buildNumber, long buildTimeStamp)
public VersionImpl(int major, int minor, int micro, long buildNumber)
public VersionImpl(int major, int minor, long buildNumber)
public VersionImpl(int major, int minor, int micro, java.lang.String quality, long buildNumber)
public VersionImpl(int major, int minor, int micro, java.lang.String quality)
public VersionImpl(int major, int minor, int micro)
public VersionImpl(int major, int minor, int micro, java.lang.String quality, long buildNumber, java.lang.String buildTimeStamp, java.util.Locale locale) throws java.text.ParseException
public VersionImpl(int major, int minor, int micro, java.lang.String quality, long buildNumber, java.lang.String buildTimeStamp) throws java.text.ParseException
Method Detail |
public int getMajorNumber()
Version
NOT_VALUED
if there is no such number.
getMajorNumber
in interface Version
NOT_VALUED
if there is no such number.public int getMinorNumber()
Version
NOT_VALUED
if there is no such number.
getMinorNumber
in interface Version
NOT_VALUED
if there is no such number.public int getMicroNumber()
Version
NOT_VALUED
if there is no such number.
getMicroNumber
in interface Version
NOT_VALUED
if there is no such number.public java.lang.String getQualityState()
Version
getQualityState
in interface Version
public long getBuildNumber()
Version
NOT_VALUED
if there is no such number.
getBuildNumber
in interface Version
NOT_VALUED
if there is no such number.public long getBuildTimestamp()
Version
NOT_VALUED
if there is no such timestamp.
getBuildTimestamp
in interface Version
NOT_VALUED
if there is no such timestamp.public java.lang.String getShortDescription()
Version
getShortDescription
in interface Version
public java.lang.String getFullDescription()
Version
getFullDescription
in interface Version
public boolean hasInfoEnough()
public long getBuildTimeStamp()
public void setBuildTimeStamp(long buildTimeStamp)
public int getMajor()
public void setMajor(int major)
public int getMicro()
public void setMicro(int micro)
public int getMinor()
public void setMinor(int minor)
public java.lang.String getQuality()
public void setQuality(java.lang.String quality)
public void setBuildNumber(long buildNumber)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |