Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields

sdl4gcj::Version Class Reference

The Version class represents version number of library. More...


Public Member Functions

 Version (int major, int minor, int patch)
int getMajor ()
 Returns the major version number as integer.
int getMinor ()
 Returns the minor version number as integer.
int getPatch ()
 Returns the patch level as integer.
boolean equals (Object obj)
 Compares this version to the specified object.
int hashCode ()
String toString ()
 Returns the string representation of the reciever.

Private Attributes

int major
int minor
int patch
String versionString = null


Detailed Description

The Version class represents version number of library.

This class is immutable.

Author:
Masahiko SAWAI
See also:
sdl4gcj.Sys::compiledVersion() : Version

sdl4gcj.Sys::linkedVersion() : Version


Constructor & Destructor Documentation

sdl4gcj::Version::Version int  major,
int  minor,
int  patch
[inline]
 


Member Function Documentation

boolean sdl4gcj::Version::equals Object  obj  )  [inline]
 

Compares this version to the specified object.

The result is true if and only if the arguments is not null and is a Version object that represents the same version as thie object.

Parameters:
obj the object to compare this Version against.
Returns:
true if the Version are equal, false otherwise.

int sdl4gcj::Version::getMajor  )  [inline]
 

Returns the major version number as integer.

Returns:
major version

int sdl4gcj::Version::getMinor  )  [inline]
 

Returns the minor version number as integer.

Returns:
minor version

int sdl4gcj::Version::getPatch  )  [inline]
 

Returns the patch level as integer.

Returns:
patch level

int sdl4gcj::Version::hashCode  )  [inline]
 

String sdl4gcj::Version::toString  )  [inline]
 

Returns the string representation of the reciever.

Returns:
a string representation


Field Documentation

int sdl4gcj::Version::major [private]
 

int sdl4gcj::Version::minor [private]
 

int sdl4gcj::Version::patch [private]
 

String sdl4gcj::Version::versionString = null [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Apr 24 14:07:31 2006 for sdl4gcj by  doxygen 1.4.3