程序包 weka.core

类 Version

java.lang.Object
weka.core.Version
所有已实现的接口:
Comparable, RevisionHandler

public class Version extends Object implements 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.
版本:
$Revision: 1.8 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static int
    the major version
    static int
    the minor version
    static int
    the revision
    static boolean
    True if snapshot
    static String
    the complete version
    static final String
    the version file
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    checks the version of this class against the given version-string
    boolean
    whether the given version string is equal to this version
    Returns the revision string.
    boolean
    checks whether this version is newer than the one from the given version string
    boolean
    checks whether this version is older than the one from the given version string
    static void
    main(String[] args)
    only for testing
    returns the current version as string

    从类继承的方法 java.lang.Object

    getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • VERSION_FILE

      public static final String VERSION_FILE
      the version file
      另请参阅:
    • MAJOR

      public static int MAJOR
      the major version
    • MINOR

      public static int MINOR
      the minor version
    • REVISION

      public static int REVISION
      the revision
    • SNAPSHOT

      public static boolean SNAPSHOT
      True if snapshot
    • VERSION

      public static String VERSION
      the complete version
  • 构造器详细资料

    • Version

      public Version()
  • 方法详细资料

    • compareTo

      public int compareTo(Object o)
      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

      public boolean equals(Object o)
      whether the given version string is equal to this version
      覆盖:
      equals 在类中 Object
      参数:
      o - the version-string to compare to
      返回:
      TRUE if the version-string is equals to its own
    • isOlder

      public boolean isOlder(Object o)
      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

      public boolean isNewer(Object o)
      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

      public String toString()
      returns the current version as string
      覆盖:
      toString 在类中 Object
      返回:
      the current version
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] args)
      only for testing
      参数:
      args - the commandline arguments - ignored