程序包 weka.core
类 RevisionUtils
java.lang.Object
weka.core.RevisionUtils
Contains utility functions for handling revisions.
- 版本:
- $Revision: 1.1 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String
Extracts the revision string.static String
extract
(RevisionHandler handler) Extracts the revision string returned by the RevisionHandler.static RevisionUtils.Type
Determines the type of a (sanitized) revision string.static RevisionUtils.Type
getType
(RevisionHandler handler) Determines the type of a (sanitized) revision string returned by the RevisionHandler.static void
For testing only.
-
构造器详细资料
-
RevisionUtils
public RevisionUtils()
-
-
方法详细资料
-
extract
Extracts the revision string returned by the RevisionHandler.- 参数:
handler
- the RevisionHandler to get the revision for- 返回:
- the actual revision string
-
extract
Extracts the revision string.- 参数:
s
- the string to get the revision string from- 返回:
- the actual revision string
-
getType
Determines the type of a (sanitized) revision string returned by the RevisionHandler.- 参数:
handler
- the RevisionHandler to determine the type for- 返回:
- the type, UNKNOWN if it cannot be determined
-
getType
Determines the type of a (sanitized) revision string. Use extract(String) method to extract the revision first before calling this method.- 参数:
revision
- the revision to get the type for- 返回:
- the type, UNKNOWN if it cannot be determined
- 另请参阅:
-
main
For testing only. The first parameter must be a classname of a class implementing the weka.core.RevisionHandler interface.- 参数:
args
- the commandline arguments- 抛出:
Exception
- if something goes wrong
-