程序包 weka.core
类 ClassDiscovery.StringCompare
java.lang.Object
weka.core.ClassDiscovery.StringCompare
- 所有已实现的接口:
Comparator
,RevisionHandler
- 封闭类:
- ClassDiscovery
public static class ClassDiscovery.StringCompare
extends Object
implements Comparator, RevisionHandler
compares two strings. The following order is used:
- case insensitive
- german umlauts (ä , ö etc.) or other non-ASCII letters are treated as special chars
- special chars < numbers < letters
-
构造器概要
构造器 -
方法概要
从接口继承的方法 java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
构造器详细资料
-
StringCompare
public StringCompare()
-
-
方法详细资料
-
compare
Compares its two arguments for order.- 指定者:
compare
在接口中Comparator
- 参数:
o1
- the first objecto2
- the second object- 返回:
- -1 if o1<o2, 0 if o1=o2 and 1 if o1&;gt;o2
-
equals
Indicates whether some other object is "equal to" this Comparator.- 指定者:
equals
在接口中Comparator
- 覆盖:
equals
在类中Object
- 参数:
obj
- the object to compare with this Comparator- 返回:
- true if the object is a StringCompare object as well
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-