程序包 weka.core
类 Version
java.lang.Object
weka.core.Version
- 所有已实现的接口:
Comparable
,RevisionHandler
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.
Should be used e.g. in exports to XML for keeping track, with which version of WEKA the file was produced.
- 版本:
- $Revision: 1.8 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
checks the version of this class against the given version-stringboolean
whether the given version string is equal to this versionReturns the revision string.boolean
checks whether this version is newer than the one from the given version stringboolean
checks whether this version is older than the one from the given version stringstatic void
only for testingtoString()
returns the current version as string
-
字段详细资料
-
VERSION_FILE
the version file- 另请参阅:
-
MAJOR
public static int MAJORthe major version -
MINOR
public static int MINORthe minor version -
REVISION
public static int REVISIONthe revision -
SNAPSHOT
public static boolean SNAPSHOTTrue if snapshot -
VERSION
the complete version
-
-
构造器详细资料
-
Version
public Version()
-
-
方法详细资料
-
compareTo
checks the version of this class against the given version-string- 指定者:
compareTo
在接口中Comparable
- 参数:
o
- the version-string to compare with- 返回:
- -1 if this version is less, 0 if equal and +1 if greater than the provided version
-
equals
whether the given version string is equal to this version -
isOlder
checks whether this version is older than the one from the given version string- 参数:
o
- the version-string to compare with- 返回:
- TRUE if this version is older than the given one
-
isNewer
checks whether this version is newer than the one from the given version string- 参数:
o
- the version-string to compare with- 返回:
- TRUE if this version is newer than the given one
-
toString
returns the current version as string -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
only for testing- 参数:
args
- the commandline arguments - ignored
-