程序包 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
  • 构造器详细资料

    • StringCompare

      public StringCompare()
  • 方法详细资料

    • compare

      public int compare(Object o1, Object o2)
      Compares its two arguments for order.
      指定者:
      compare 在接口中 Comparator
      参数:
      o1 - the first object
      o2 - the second object
      返回:
      -1 if o1<o2, 0 if o1=o2 and 1 if o1&;gt;o2
    • equals

      public boolean equals(Object obj)
      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

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