|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.Version
public class Version
This class contains the version number of the current WEKA release and some
methods for comparing another version string. The normal layout of a
version string is "MAJOR.MINOR.REVISION", but it can also handle partial
version strings, e.g. "3.4".
Should be used e.g. in exports to XML for keeping track, with which version
of WEKA the file was produced.
| Field Summary | |
|---|---|
static int |
MAJOR
the major version |
static int |
MINOR
the minor version |
static int |
REVISION
the revision |
static String |
VERSION
the complete version |
static String |
VERSION_FILE
the version file |
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
checks the version of this class against the given version-string |
boolean |
equals(Object o)
whether the given version string is equal to this version |
String |
getRevision()
Returns the revision string. |
boolean |
isNewer(Object o)
checks whether this version is newer than the one from the given version string |
boolean |
isOlder(Object o)
checks whether this version is older than the one from the given version string |
static void |
main(String[] args)
only for testing |
String |
toString()
returns the current version as string |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION_FILE
public static int MAJOR
public static int MINOR
public static int REVISION
public static String VERSION
| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public int compareTo(Object o)
compareTo in interface Comparableo - the version-string to compare with
public boolean equals(Object o)
equals in class Objecto - the version-string to compare to
public boolean isOlder(Object o)
o - the version-string to compare with
public boolean isNewer(Object o)
o - the version-string to compare with
public String toString()
toString in class Objectpublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
args - the commandline arguments - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||