Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.utils
Class SortedListbox.SortComparator

java.lang.Object
  extended by com.ibm.etools.iseries.edit.utils.SortedListbox.SortComparator
All Implemented Interfaces:
Comparator
Enclosing class:
SortedListbox

protected class SortedListbox.SortComparator
extends Object
implements Comparator

Comparator for sorting the elements to build a sorted list. Uses the String compareTo method but ignores the case of the letters.


Constructor Summary
protected SortedListbox.SortComparator()
           
 
Method Summary
 int compare(Object arg0, Object arg1)
          arg0 < arg1 - returns negative int arg0 = arg1 - returns 0 arg0 > arg1 - returns positive int
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SortedListbox.SortComparator

protected SortedListbox.SortComparator()
Method Detail

compare

public int compare(Object arg0,
                   Object arg1)
arg0 < arg1 - returns negative int arg0 = arg1 - returns 0 arg0 > arg1 - returns positive int

Specified by:
compare in interface Comparator

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.