org.knuth.chkupdate
Class UpdateResult

java.lang.Object
  extended by org.knuth.chkupdate.UpdateResult

public class UpdateResult
extends java.lang.Object

A wrapper-class holding informations on the latest update checked by a Provider.

Author:
Lukas Knuth

Field Summary
private  java.util.Date update_date
          The date of the last update
private  Version version
          The latest version as a "Version"-Object
private  java.lang.String version_str
          The latest version as a String
 
Constructor Summary
UpdateResult(java.lang.String version_str, java.util.Date update_date)
          Creates a new "UpdateResult"-Object and creates a "Version"-Object for the given version string.
 
Method Summary
 java.util.Date getUpdateDate()
          The Date of the latest version for this Update.
 Version getVersion()
          Returns the version of this update as a "Version"-Object.
 java.lang.String getVersionString()
          Returns the version of this update as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version_str

private java.lang.String version_str
The latest version as a String


update_date

private java.util.Date update_date
The date of the last update


version

private Version version
The latest version as a "Version"-Object

Constructor Detail

UpdateResult

public UpdateResult(java.lang.String version_str,
                    java.util.Date update_date)
Creates a new "UpdateResult"-Object and creates a "Version"-Object for the given version string.

Parameters:
version_str - The Version-String of the latest update.
update_date - The Date of the latest update.
Method Detail

getVersion

public Version getVersion()
Returns the version of this update as a "Version"-Object.

Returns:
A "Version"-Object for this Update.

getVersionString

public java.lang.String getVersionString()
Returns the version of this update as a String.

Returns:
A string with the latest version.

getUpdateDate

public java.util.Date getUpdateDate()
The Date of the latest version for this Update.

Returns:
The Date of this Update.