weka.filters.unsupervised.attribute
Class SortLabels.CaseSensitiveComparator
java.lang.Object
weka.filters.unsupervised.attribute.SortLabels.CaseSensitiveComparator
- All Implemented Interfaces:
- Serializable, Comparator
- Enclosing class:
- SortLabels
public static class SortLabels.CaseSensitiveComparator
- extends Object
- implements Comparator, Serializable
Represents a case-sensitive comparator for two strings.
- Version:
- $Revision: 8034 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
|
Method Summary |
int |
compare(Object o1,
Object o2)
compares the two strings, returns -1 if o1 is smaller than o2, 0
if equal and +1 if greater. |
SortLabels.CaseSensitiveComparator
public SortLabels.CaseSensitiveComparator()
compare
public int compare(Object o1,
Object o2)
- compares the two strings, returns -1 if o1 is smaller than o2, 0
if equal and +1 if greater.
- Specified by:
compare in interface Comparator
- Parameters:
o1 - the first string to compareo2 - the second string to compare
- Returns:
- returns -1 if o1 is smaller than o2, 0 if equal and +1
if greater
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.