Package weka.core

Class ClassDiscovery.StringCompare

    • Constructor Detail

      • StringCompare

        public StringCompare()
    • Method Detail

      • compare

        public int compare​(String o1,
                           String o2)
        Compares its two arguments for order.
        Specified by:
        compare in interface Comparator<String>
        Parameters:
        o1 - the first object
        o2 - the second object
        Returns:
        -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.
        Specified by:
        equals in interface Comparator<String>
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with this Comparator
        Returns:
        true if the object is a StringCompare object as well