Gridarta Editor
net.sf.gridarta.updater.Updater.VersionInfo Class Reference

Class for holding version information and quickly comparing it. More...

+ Collaboration diagram for net.sf.gridarta.updater.Updater.VersionInfo:

Private Member Functions

 VersionInfo ()
 Private constructor used for unavailable versions. More...
 
 VersionInfo (@NotNull final String version, @NotNull final String timestamp, @NotNull final String developer)
 Private constructor to map the strings. More...
 
 VersionInfo (@NotNull final ResourceBundle bundle, @NotNull final String prefix)
 Create update information from a ResourceBundle. More...
 

Private Attributes

final String developer
 Update information: Developer that created the update version. More...
 
final String timestamp
 Update information: Time stamp of update version. More...
 
final String version
 Update information: Version of update version, usually the build number. More...
 

Static Private Attributes

static final VersionInfo UNAVAILABLE = new VersionInfo()
 Special Version "unavailable". More...
 

Detailed Description

Class for holding version information and quickly comparing it.

Definition at line 250 of file Updater.java.

Constructor & Destructor Documentation

◆ VersionInfo() [1/3]

net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo ( )
private

Private constructor used for unavailable versions.

Definition at line 280 of file Updater.java.

◆ VersionInfo() [2/3]

net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo ( @NotNull final String  version,
@NotNull final String  timestamp,
@NotNull final String  developer 
)
private

Private constructor to map the strings.

Parameters
versionthe version
timestampthe timestamp
developerthe developer

Definition at line 290 of file Updater.java.

References net.sf.gridarta.updater.Updater.VersionInfo.developer, net.sf.gridarta.updater.Updater.VersionInfo.timestamp, and net.sf.gridarta.updater.Updater.VersionInfo.version.

◆ VersionInfo() [3/3]

net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo ( @NotNull final ResourceBundle  bundle,
@NotNull final String  prefix 
)
private

Create update information from a ResourceBundle.

The ResourceBundle should have Strings for

prefix + .number

,

.tstamp

and

.developer

.

Parameters
bundleResourceBundle to create update information from
prefixPrefix for update information within the resource bundle

Definition at line 304 of file Updater.java.

Member Data Documentation

◆ developer

final String net.sf.gridarta.updater.Updater.VersionInfo.developer
private

Update information: Developer that created the update version.

Definition at line 269 of file Updater.java.

Referenced by net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo().

◆ timestamp

final String net.sf.gridarta.updater.Updater.VersionInfo.timestamp
private

Update information: Time stamp of update version.

Definition at line 263 of file Updater.java.

Referenced by net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo().

◆ UNAVAILABLE

final VersionInfo net.sf.gridarta.updater.Updater.VersionInfo.UNAVAILABLE = new VersionInfo()
staticprivate

Special Version "unavailable".

Definition at line 275 of file Updater.java.

Referenced by net.sf.gridarta.updater.Updater.run().

◆ version

final String net.sf.gridarta.updater.Updater.VersionInfo.version
private

Update information: Version of update version, usually the build number.

Definition at line 257 of file Updater.java.

Referenced by net.sf.gridarta.updater.Updater.VersionInfo.VersionInfo().


The documentation for this class was generated from the following file: