org.jscience
Class JScienceVersion

java.lang.Object
  extended by org.jscience.JScienceVersion
All Implemented Interfaces:
java.io.Serializable

public final class JScienceVersion
extends java.lang.Object
implements java.io.Serializable

The Version class contains information about the current and latest release.

See Also:
Serialized Form

Field Summary
 java.lang.String home
          The URL for the home of this version.
 int major
          Major version number.
 int minor
          Minor version number.
 java.lang.String platform
          Java platform required.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two versions for equality.
static JScienceVersion getCurrent()
          Gets the current version.
static JScienceVersion getLatest()
          Retrieves the latest version from the home URL.
 boolean isLater(JScienceVersion ver)
          Returns true if this is later than another version.
 java.lang.String toString()
          Returns the version number as a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

major

public final int major
Major version number.


minor

public final int minor
Minor version number.


platform

public final java.lang.String platform
Java platform required.


home

public final java.lang.String home
The URL for the home of this version.

Method Detail

getCurrent

public static JScienceVersion getCurrent()
Gets the current version.

Returns:
DOCUMENT ME!

getLatest

public static JScienceVersion getLatest()
                                 throws java.io.IOException
Retrieves the latest version from the home URL.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
Compares two versions for equality.

Overrides:
equals in class java.lang.Object
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
Returns the version number as a string.

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

isLater

public boolean isLater(JScienceVersion ver)
Returns true if this is later than another version.

Parameters:
ver - DOCUMENT ME!
Returns:
DOCUMENT ME!