Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.filters.unsupervised.attribute
Class SortLabels.CaseInsensitiveComparator

    java.lang.Object
      weka.filters.unsupervised.attribute.SortLabels.CaseInsensitiveComparator

All Implemented Interfaces:
  java.io.Serializable, java.util.Comparator

Enclosing class:
  SortLabels

    public static class SortLabels.CaseInsensitiveComparator

extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

Represents a case-insensitive comparator for two strings.

Version:
  $Revision: 5987 $
Author:
  fracpete (fracpete at waikato dot ac dot nz)
See Also:
  Serialized Form

Constructor Summary
`SortLabels.CaseInsensitiveComparator()`

Method Summary
`int` | `compare(java.lang.Object o1, java.lang.Object o2)` compares the two strings, returns -1 if o1 is smaller than o2, 0 if equal and +1 if greater.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

Constructor Detail

### SortLabels.CaseInsensitiveComparator

    public SortLabels.CaseInsensitiveComparator()

Method Detail

### compare

    public int compare(java.lang.Object o1,
                       java.lang.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 `java.util.Comparator`
  Parameters:
    `o1` - the first string to compare
    `o2` - the second string to compare
  Returns:
    returns -1 if o1 is smaller than o2, 0 if equal and +1 if greater

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD