jsci
Class Version

java.lang.Object
  extended by jsci.Version
All Implemented Interfaces:
Serializable

public final class Version
extends Object
implements Serializable

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

See Also:
Serialized Form

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


home

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

Method Detail

getCurrent

public static Version getCurrent()
Gets the current version.


getLatest

public static Version getLatest()
                         throws IOException
Retrieves the latest version from the home URL.

Throws:
IOException

equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

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

Overrides:
toString in class Object

isLater

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



jHepWork 3.1 ©