jsci
Class Version
- java.lang.Object
-
- jsci.Version
-
- All Implemented Interfaces:
- java.io.Serializable
public final class Version extends java.lang.Object implements java.io.SerializableThe Version class contains information about the current and latest release.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringhomeThe URL for the home of this version.intmajorMajor version number.intminorMinor version number.java.lang.StringplatformJava platform required.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Compares two versions for equality.static VersiongetCurrent()Gets the current version.static VersiongetLatest()Retrieves the latest version from the home URL.inthashCode()booleanisLater(Version ver)Returns true if this is later than another version.java.lang.StringtoString()Returns the version number as a string.
-
-
-
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 Version getCurrent()
Gets the current version.
-
getLatest
public static Version getLatest() throws java.io.IOException
Retrieves the latest version from the home URL.- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
Compares two versions for equality.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the version number as a string.- Overrides:
toStringin classjava.lang.Object
-
isLater
public boolean isLater(Version ver)
Returns true if this is later than another version.
-
-
DMelt 3.0 © DataMelt by jWork.ORG